aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:58:25 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:58:25 +0000
commit7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450 (patch)
treeefca3acd6143b74c92f92934f28e80019c14b776 /hw/pc.c
parent9678d9501bc5f2e6e06170013dec8667057c3b62 (diff)
x86: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/pc.c b/hw/pc.c
index b797f218f7..b659344154 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -813,9 +813,7 @@ static void pc_init1(ram_addr_t ram_size,
ram_addr_t below_4g_mem_size, above_4g_mem_size = 0;
int bios_size, isa_bios_size;
PCIBus *pci_bus;
- ISADevice *isa_dev;
int piix3_devfn = -1;
- CPUState *env;
qemu_irq *cpu_irq;
qemu_irq *isa_irq;
qemu_irq *i8259;
@@ -845,7 +843,7 @@ static void pc_init1(ram_addr_t ram_size,
}
for (i = 0; i < smp_cpus; i++) {
- env = pc_new_cpu(cpu_model);
+ pc_new_cpu(cpu_model);
}
vmport_init();
@@ -1014,7 +1012,7 @@ static void pc_init1(ram_addr_t ram_size,
}
}
- isa_dev = isa_create_simple("i8042");
+ isa_create_simple("i8042");
DMA_init(0);
#ifdef HAS_AUDIO
audio_init(pci_enabled ? pci_bus : NULL, isa_irq);