scsi-bus: use DO_UPCAST
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
8cc7c3952d
commit
645a8ad6e1
@ -725,7 +725,7 @@ void scsi_device_purge_requests(SCSIDevice *sdev)
|
||||
|
||||
static char *scsibus_get_fw_dev_path(DeviceState *dev)
|
||||
{
|
||||
SCSIDevice *d = (SCSIDevice*)dev;
|
||||
SCSIDevice *d = DO_UPCAST(SCSIDevice, qdev, dev);
|
||||
SCSIBus *bus = scsi_bus_from_device(d);
|
||||
char path[100];
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user