From 8e419aefa07ca8e640f8db50b450378e84d60a11 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 16 Sep 2015 16:18:38 +0200 Subject: 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 Reviewed-by: Max Reitz Reviewed-by: Alberto Garcia Reviewed-by: Fam Zheng Reviewed-by: Stefan Hajnoczi --- include/qemu/queue.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include/qemu/queue.h') diff --git a/include/qemu/queue.h b/include/qemu/queue.h index a8d3cb8..f781aa2 100644 --- a/include/qemu/queue.h +++ b/include/qemu/queue.h @@ -117,12 +117,6 @@ struct { \ } \ } while (/*CONSTCOND*/0) -#define QLIST_FIX_HEAD_PTR(head, field) do { \ - if ((head)->lh_first != NULL) { \ - (head)->lh_first->field.le_prev = &(head)->lh_first; \ - } \ -} while (/*CONSTCOND*/0) - #define QLIST_INSERT_AFTER(listelm, elm, field) do { \ if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \ (listelm)->field.le_next->field.le_prev = \ -- cgit v1.1