diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-03-19 08:43:22 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-03-19 08:43:22 +0000 |
commit | d81e54de5919f46d911e971804bb4b4d77a8a88a (patch) | |
tree | 2731b858934fb1f20546fb553beba2a4c5aa72ac /hw/petalogix_ml605_mmu.c | |
parent | 44bc10d5bcb1957f76925b849488288f74f623b7 (diff) |
petalogix_ml605_mmu: remove unused variable
Remove a write-only variable, spotted by GCC 4.6.0:
/src/qemu/hw/petalogix_ml605_mmu.c: In function 'petalogix_ml605_init':
/src/qemu/hw/petalogix_ml605_mmu.c:153:11: error: variable 'serial' set but not used [-Werror=unused-but-set-variable]
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/petalogix_ml605_mmu.c')
-rw-r--r-- | hw/petalogix_ml605_mmu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/petalogix_ml605_mmu.c b/hw/petalogix_ml605_mmu.c index ca0986a0ef..8213902fb4 100644 --- a/hw/petalogix_ml605_mmu.c +++ b/hw/petalogix_ml605_mmu.c @@ -150,7 +150,6 @@ petalogix_ml605_init(ram_addr_t ram_size, ram_addr_t phys_ram; ram_addr_t phys_flash; qemu_irq irq[32], *cpu_irq; - void *serial = NULL; /* init CPUs */ if (cpu_model == NULL) { @@ -185,8 +184,8 @@ petalogix_ml605_init(ram_addr_t ram_size, irq[i] = qdev_get_gpio_in(dev, i); } - serial = serial_mm_init(UART16550_BASEADDR + 0x1000, 2, irq[5], - 115200, serial_hds[0], 1, 0); + serial_mm_init(UART16550_BASEADDR + 0x1000, 2, irq[5], 115200, + serial_hds[0], 1, 0); /* 2 timers at irq 2 @ 100 Mhz. */ xilinx_timer_create(TIMER_BASEADDR, irq[2], 2, 100 * 1000000); |