diff mbox

[4/4] Small cleanup for drive_hot_add

Message ID 1253287594-12905-5-git-send-email-wolfgang.mauerer@siemens.com
State Superseded
Headers show

Commit Message

Wolfgang Mauerer Sept. 18, 2009, 3:26 p.m. UTC
Remove an unused variable.

Signed-off-by: Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 hw/pci-hotplug.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c
index 4455f17..e62a2b0 100644
--- a/hw/pci-hotplug.c
+++ b/hw/pci-hotplug.c
@@ -146,7 +146,7 @@  void drive_hot_add(Monitor *mon, const QDict *qdict)
 {
     int dom, pci_bus;
     unsigned slot;
-    int type, bus;
+    int type;
     int success = 0;
     PCIDevice *dev;
     DriveInfo *dinfo;
@@ -172,7 +172,6 @@  void drive_hot_add(Monitor *mon, const QDict *qdict)
         return;
     }
     type = dinfo->type;
-    bus = drive_get_max_bus (type);
 
     switch (type) {
     case IF_SCSI: