diff options
| author | Max Reitz | 2015-08-26 19:47:49 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2015-09-14 16:51:36 +0200 |
| commit | 6ebf9aa2ef7f3e094d91ea27140dc6e73774386a (patch) | |
| tree | f4e0b864d52ad4662abed1f60be2ca1990a44c6e /block/sheepdog.c | |
| parent | block: Always pass NULL as drv for bdrv_open() (diff) | |
| download | qemu-6ebf9aa2ef7f3e094d91ea27140dc6e73774386a.tar.gz qemu-6ebf9aa2ef7f3e094d91ea27140dc6e73774386a.tar.xz qemu-6ebf9aa2ef7f3e094d91ea27140dc6e73774386a.zip | |
block: Drop drv parameter from bdrv_open()
Now that this parameter is effectively unused, we can drop it and just
pass NULL on to bdrv_open_inherit().
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/sheepdog.c')
| -rw-r--r-- | block/sheepdog.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/block/sheepdog.c b/block/sheepdog.c index 9585beb73e..67ca788d5c 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -1554,7 +1554,7 @@ static int sd_prealloc(const char *filename, Error **errp) int ret; ret = bdrv_open(&bs, filename, NULL, NULL, BDRV_O_RDWR | BDRV_O_PROTOCOL, - NULL, errp); + errp); if (ret < 0) { goto out_with_err_set; } @@ -1746,8 +1746,7 @@ static int sd_create(const char *filename, QemuOpts *opts, } bs = NULL; - ret = bdrv_open(&bs, backing_file, NULL, NULL, BDRV_O_PROTOCOL, NULL, - errp); + ret = bdrv_open(&bs, backing_file, NULL, NULL, BDRV_O_PROTOCOL, errp); if (ret < 0) { goto out; } |
