summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-12-06 23:00:09 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-01-11 15:46:54 +0100
commit70537ed51599de19e7cbafd8fa21d9619b0515ff (patch)
tree0db347e9785f2a1deeb81457a54540b4d5af3b42
parent9df43317b8252609599092b3074ffd8aa6eae933 (diff)
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é <philmd@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--blockdev.c2
1 files changed, 1 insertions, 1 deletions
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;