From: Paolo Bonzini Date: Thu, 6 Dec 2018 22:00:09 +0000 (+0100) Subject: qemu/queue.h: do not access tqe_prev directly X-Git-Tag: qemu-xen-4.13.0-rc1~452^2~11 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=70537ed51599de19e7cbafd8fa21d9619b0515ff;p=qemu-xen.git qemu/queue.h: do not access tqe_prev directly Use the QTAILQ_IN_USE macro instead, it does the same thing but the next patch will change it to a different definition. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster Signed-off-by: Paolo Bonzini --- diff --git a/blockdev.c b/blockdev.c index a6f71f9d83..4866f811b4 100644 --- a/blockdev.c +++ b/blockdev.c @@ -4252,7 +4252,7 @@ void qmp_blockdev_del(const char *node_name, Error **errp) goto out; } - if (!bs->monitor_list.tqe_prev) { + if (!QTAILQ_IN_USE(bs, monitor_list)) { error_setg(errp, "Node %s is not owned by the monitor", bs->node_name); goto out;