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 /hw/scsi | |
| 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 'hw/scsi')
| -rw-r--r-- | hw/scsi/scsi-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index 97cd167114..c480553083 100644 --- a/hw/scsi/scsi-bus.c +++ b/hw/scsi/scsi-bus.c @@ -1554,7 +1554,7 @@ SCSIDevice *scsi_device_find(SCSIBus *bus, int channel, int id, int lun) BusChild *kid; SCSIDevice *target_dev = NULL; - QTAILQ_FOREACH_REVERSE(kid, &bus->qbus.children, ChildrenHead, sibling) { + QTAILQ_FOREACH_REVERSE(kid, &bus->qbus.children, sibling) { DeviceState *qdev = kid->child; SCSIDevice *dev = SCSI_DEVICE(qdev); |
