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/parallel.c | |
parent | 9678d9501bc5f2e6e06170013dec8667057c3b62 (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/parallel.c')
-rw-r--r-- | hw/parallel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/parallel.c b/hw/parallel.c index 12693d40d2..be8e2d5479 100644 --- a/hw/parallel.c +++ b/hw/parallel.c @@ -414,15 +414,14 @@ parallel_ioport_eppdata_read_hw4(void *opaque, uint32_t addr) static void parallel_ioport_ecp_write(void *opaque, uint32_t addr, uint32_t val) { - addr &= 7; - pdebug("wecp%d=%02x\n", addr, val); + pdebug("wecp%d=%02x\n", addr & 7, val); } static uint32_t parallel_ioport_ecp_read(void *opaque, uint32_t addr) { uint8_t ret = 0xff; - addr &= 7; - pdebug("recp%d:%02x\n", addr, ret); + + pdebug("recp%d:%02x\n", addr & 7, ret); return ret; } |