From: Shraddha Barke Date: Fri, 25 Sep 2015 14:36:03 +0000 (+0530) Subject: hw: timer: Remove unnecessary variable X-Git-Tag: v2.5.0-rc0~81^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf5f78efed26054c2ce71e6f4c30ece13bf06e87;p=thirdparty%2Fqemu.git hw: timer: Remove unnecessary variable Compress lines and remove the variable. Signed-off-by: Shraddha Barke Signed-off-by: Michael Tokarev --- diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index 8ab683ddacd..b3df8f9ec9a 100644 --- a/hw/timer/m48t59.c +++ b/hw/timer/m48t59.c @@ -590,10 +590,8 @@ static void nvram_writel (void *opaque, hwaddr addr, uint32_t value) static uint32_t nvram_readb (void *opaque, hwaddr addr) { M48t59State *NVRAM = opaque; - uint32_t retval; - retval = m48t59_read(NVRAM, addr); - return retval; + return m48t59_read(NVRAM, addr); } static uint32_t nvram_readw (void *opaque, hwaddr addr)