From 7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 25 Apr 2010 18:58:25 +0000 Subject: x86: remove dead assignments, spotted by clang analyzer Value stored is never read. Signed-off-by: Blue Swirl --- hw/pci-hotplug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hw/pci-hotplug.c') diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 343fd17031..cc45c504ad 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -105,7 +105,7 @@ void drive_hot_add(Monitor *mon, const QDict *qdict) { int dom, pci_bus; unsigned slot; - int type, bus; + int type; PCIDevice *dev; DriveInfo *dinfo = NULL; const char *pci_addr = qdict_get_str(qdict, "pci_addr"); @@ -119,7 +119,6 @@ void drive_hot_add(Monitor *mon, const QDict *qdict) goto err; } type = dinfo->type; - bus = drive_get_max_bus (type); switch (type) { case IF_SCSI: -- cgit v1.2.3