aboutsummaryrefslogtreecommitdiffstats
path: root/hw/acpi.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/acpi.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/acpi.c')
-rw-r--r--hw/acpi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/acpi.c b/hw/acpi.c
index 5c01c2e3b..e3b63b724 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -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
}