mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-25 04:30:02 +00:00
hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly
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é <philmd@redhat.com> Reviewed-by: Dmitry Fleytman <dmitry.fleytman@gmail.com> Message-Id: <20190528164020.32250-2-philmd@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
d33317b54c
commit
573c3e077b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user