diff options
author | Kevin Wolf <kwolf@redhat.com> | 2015-09-16 16:18:38 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-10-16 15:34:30 +0200 |
commit | 8e419aefa07ca8e640f8db50b450378e84d60a11 (patch) | |
tree | b3a4ea836989099b6d2cd82d0fe2c1aa71b12fcd /block/qed.c | |
parent | 3f09bfbc7bee812a44838f4c8b254007a9b86cab (diff) | |
download | qemu-8e419aefa07ca8e640f8db50b450378e84d60a11.zip qemu-8e419aefa07ca8e640f8db50b450378e84d60a11.tar.gz qemu-8e419aefa07ca8e640f8db50b450378e84d60a11.tar.bz2 |
block: Remove bdrv_swap()
bdrv_swap() is unused now. Remove it and all functions that have
no other users than bdrv_swap(). In particular, this removes the
.bdrv_rebind callbacks from block drivers.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/qed.c')
-rw-r--r-- | block/qed.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/block/qed.c b/block/qed.c index 0af81dc..5ea05d4 100644 --- a/block/qed.c +++ b/block/qed.c @@ -354,12 +354,6 @@ static void qed_cancel_need_check_timer(BDRVQEDState *s) timer_del(s->need_check_timer); } -static void bdrv_qed_rebind(BlockDriverState *bs) -{ - BDRVQEDState *s = bs->opaque; - s->bs = bs; -} - static void bdrv_qed_detach_aio_context(BlockDriverState *bs) { BDRVQEDState *s = bs->opaque; @@ -1664,7 +1658,6 @@ static BlockDriver bdrv_qed = { .supports_backing = true, .bdrv_probe = bdrv_qed_probe, - .bdrv_rebind = bdrv_qed_rebind, .bdrv_open = bdrv_qed_open, .bdrv_close = bdrv_qed_close, .bdrv_reopen_prepare = bdrv_qed_reopen_prepare, |