From 884a0c7677cf8431d2a632673914994c2e01673d Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Wed, 13 Jan 2010 18:59:54 +0000 Subject: pcnet: remove dead nested assignment, spotted by clang Although the value stored to 'addr' is used in the enclosing expression, the value is never actually read from 'addr'. Probably a typo. Signed-off-by: Blue Swirl --- hw/pcnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/pcnet.c') diff --git a/hw/pcnet.c b/hw/pcnet.c index 91d106d5b..44b5b3148 100644 --- a/hw/pcnet.c +++ b/hw/pcnet.c @@ -1608,7 +1608,7 @@ static void pcnet_aprom_writeb(void *opaque, uint32_t addr, uint32_t val) static uint32_t pcnet_aprom_readb(void *opaque, uint32_t addr) { PCNetState *s = opaque; - uint32_t val = s->prom[addr &= 15]; + uint32_t val = s->prom[addr & 15]; #ifdef PCNET_DEBUG printf("pcnet_aprom_readb addr=0x%08x val=0x%02x\n", addr, val); #endif -- cgit v1.2.3