]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu/queue.h: do not access tqe_prev directly
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Dec 2018 22:00:09 +0000 (23:00 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jan 2019 14:46:54 +0000 (15:46 +0100)
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é <philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
blockdev.c

index a6f71f9d83ba99741c42bb31f010889edc16c6b3..4866f811b488acc55b7e611c0ccd7e1fce3d520a 100644 (file)
@@ -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;