mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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:
parent
9678d9501b
commit
7f5b7d3e2c
7 changed files with 17 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue