[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/4] Small cleanup for drive_hot_add
From: |
Wolfgang Mauerer |
Subject: |
[Qemu-devel] [PATCH 4/4] Small cleanup for drive_hot_add |
Date: |
Fri, 18 Sep 2009 17:26:34 +0200 |
Remove an unused variable.
Signed-off-by: Wolfgang Mauerer <address@hidden>
Signed-off-by: Jan Kiszka <address@hidden>
---
hw/pci-hotplug.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
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:
--
1.6.4
Re: [Qemu-devel] [PATCH 1/4] SCSI-hotdel: Add detach method to LSI SCSI driver, Gerd Hoffmann, 2009/09/21