summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-09-25 20:06:03 +0530
committerMichael Tokarev <mjt@tls.msk.ru>2015-10-08 19:46:47 +0300
commitbf5f78efed26054c2ce71e6f4c30ece13bf06e87 (patch)
tree0b54408dd09ae73a19c816f79cd4fa06ce452dbb /hw
parentf169f8fbca3999fe59f37a86822f305f7292949d (diff)
hw: timer: Remove unnecessary variable
Compress lines and remove the variable. Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw')
-rw-r--r--hw/timer/m48t59.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c
index 8ab683ddac..b3df8f9ec9 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)