x86: remove dead assignments, spotted by clang analyzer

Value stored is never read.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2010-04-25 18:58:25 +00:00
parent 9678d9501b
commit 7f5b7d3e2c
7 changed files with 17 additions and 19 deletions

View file

@ -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: