diff options
| author | Vladimir Sementsov-Ogievskiy | 2018-08-14 14:43:20 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-08-15 12:50:39 +0200 |
| commit | f66b1f0e2795f6ac0646103a2b3e135985f3a80b (patch) | |
| tree | 16df35ebb60ed2ef84af5bc8c3f301a5f2b9167b /block/null.c | |
| parent | block: make .bdrv_close optional (diff) | |
| download | qemu-f66b1f0e2795f6ac0646103a2b3e135985f3a80b.tar.gz qemu-f66b1f0e2795f6ac0646103a2b3e135985f3a80b.tar.xz qemu-f66b1f0e2795f6ac0646103a2b3e135985f3a80b.zip | |
block: drop empty .bdrv_close handlers
.bdrv_close handler is optional after previous commit, no needs to keep
empty functions more.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/null.c')
| -rw-r--r-- | block/null.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/block/null.c b/block/null.c index 5d610fdfba..d442d3e901 100644 --- a/block/null.c +++ b/block/null.c @@ -97,10 +97,6 @@ static int null_file_open(BlockDriverState *bs, QDict *options, int flags, return ret; } -static void null_close(BlockDriverState *bs) -{ -} - static int64_t null_getlength(BlockDriverState *bs) { BDRVNullState *s = bs->opaque; @@ -263,7 +259,6 @@ static BlockDriver bdrv_null_co = { .bdrv_file_open = null_file_open, .bdrv_parse_filename = null_co_parse_filename, - .bdrv_close = null_close, .bdrv_getlength = null_getlength, .bdrv_co_preadv = null_co_preadv, @@ -283,7 +278,6 @@ static BlockDriver bdrv_null_aio = { .bdrv_file_open = null_file_open, .bdrv_parse_filename = null_aio_parse_filename, - .bdrv_close = null_close, .bdrv_getlength = null_getlength, .bdrv_aio_preadv = null_aio_preadv, |
