diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 18:58:25 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 18:58:25 +0000 |
commit | 7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450 (patch) | |
tree | efca3acd6143b74c92f92934f28e80019c14b776 /hw/acpi.c | |
parent | 9678d9501bc5f2e6e06170013dec8667057c3b62 (diff) | |
download | qemu-7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450.zip qemu-7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450.tar.gz qemu-7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450.tar.bz2 |
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/acpi.c')
-rw-r--r-- | hw/acpi.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -88,8 +88,7 @@ static uint32_t get_pmtmr(PIIX4PMState *s) static int get_pmsts(PIIX4PMState *s) { int64_t d; - int pmsts; - pmsts = s->pmsts; + d = muldiv64(qemu_get_clock(vm_clock), PM_FREQ, get_ticks_per_sec()); if (d >= s->tmr_overflow_time) s->pmsts |= TMROF_EN; @@ -206,8 +205,8 @@ static uint32_t pm_ioport_readw(void *opaque, uint32_t addr) static void pm_ioport_writel(void *opaque, uint32_t addr, uint32_t val) { // PIIX4PMState *s = opaque; - addr &= 0x3f; #ifdef DEBUG + addr &= 0x3f; printf("PM writel port=0x%04x val=0x%08x\n", addr, val); #endif } |