aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>2011-08-04 15:40:35 +0800
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-08-11 14:37:03 +0100
commit645a8ad6e1909d36307f37f3dc4efca9e964334a (patch)
tree4bd9d51713c7373a4742401693f25b671a628a05
parent8cc7c3952d4d0a681d8d4c3ac89a206a5bfd7f00 (diff)
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>
-rw-r--r--hw/scsi-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index 0b0344c1fd..d1ef55985d 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -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;