diff options
| author | Paolo Bonzini | 2018-12-06 13:10:34 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2019-01-11 15:46:55 +0100 |
| commit | eae3eb3e185028d6e862db747e3b7397600d6762 (patch) | |
| tree | 359a23639a6db7a77407cf8f366564561b970738 /include/hw | |
| parent | qemu/queue.h: reimplement QTAILQ without pointer-to-pointers (diff) | |
| download | qemu-eae3eb3e185028d6e862db747e3b7397600d6762.tar.gz qemu-eae3eb3e185028d6e862db747e3b7397600d6762.tar.xz qemu-eae3eb3e185028d6e862db747e3b7397600d6762.zip | |
qemu/queue.h: simplify reverse access to QTAILQ
The new definition of QTAILQ does not require passing the headname,
remove it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/qdev-core.h | 2 | ||||
| -rw-r--r-- | include/hw/usb.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index bc014c1c9f..9614f76ae6 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -206,7 +206,7 @@ struct BusState { HotplugHandler *hotplug_handler; int max_index; bool realized; - QTAILQ_HEAD(ChildrenHead, BusChild) children; + QTAILQ_HEAD(, BusChild) children; QLIST_ENTRY(BusState) sibling; }; diff --git a/include/hw/usb.h b/include/hw/usb.h index 4961405fa0..c21f41c8a9 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -408,7 +408,7 @@ struct USBPacket { struct USBCombinedPacket { USBPacket *first; - QTAILQ_HEAD(packets_head, USBPacket) packets; + QTAILQ_HEAD(, USBPacket) packets; QEMUIOVector iov; }; |
