[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 07/16] hw/scsi/vmw_pvscsi: Use qbus_reset_all() dir
From: |
Laurent Vivier |
Subject: |
[Qemu-trivial] [PULL 07/16] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly |
Date: |
Thu, 6 Jun 2019 13:06:16 +0200 |
From: Philippe Mathieu-Daudé <address@hidden>
Since the BusState is accesible from the SCSIBus object,
it is pointless to use qbus_reset_all_fn.
Use qbus_reset_all() directly.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Dmitry Fleytman <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
hw/scsi/vmw_pvscsi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
index 584b4be07e79..c39e33fa3599 100644
--- a/hw/scsi/vmw_pvscsi.c
+++ b/hw/scsi/vmw_pvscsi.c
@@ -440,7 +440,7 @@ static void
pvscsi_reset_adapter(PVSCSIState *s)
{
s->resetting++;
- qbus_reset_all_fn(&s->bus);
+ qbus_reset_all(BUS(&s->bus));
s->resetting--;
pvscsi_process_completion_queue(s);
assert(QTAILQ_EMPTY(&s->pending_queue));
@@ -848,7 +848,7 @@ pvscsi_on_cmd_reset_bus(PVSCSIState *s)
trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_RESET_BUS");
s->resetting++;
- qbus_reset_all_fn(&s->bus);
+ qbus_reset_all(BUS(&s->bus));
s->resetting--;
return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;
}
--
2.21.0
- [Qemu-trivial] [PULL 00/16] Trivial branch patches, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 07/16] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly,
Laurent Vivier <=
- [Qemu-trivial] [PULL 06/16] docs/devel/build-system: Update an example, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 03/16] vhost: fix incorrect print type, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 11/16] hw/usb-storage: Use the QOM DEVICE() macro to access DeviceState.qdev, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 08/16] hw/pci-bridge: Use the QOM BUS() macro to access BusState.qbus, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 04/16] util: Adjust qemu_guest_getrandom_nofail for Coverity, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 05/16] test: Fix make target check-report.tap, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 09/16] hw/s390x/event-facility: Use the QOM BUS() macro to access BusState.qbus, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 16/16] hw/watchdog/wdt_i6300esb: Use DEVICE() macro to access DeviceState.qdev, Laurent Vivier, 2019/06/06
- [Qemu-trivial] [PULL 13/16] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev, Laurent Vivier, 2019/06/06