diff options
author | Shraddha Barke <shraddha.6596@gmail.com> | 2015-09-25 20:06:03 +0530 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-10-08 19:46:47 +0300 |
commit | bf5f78efed26054c2ce71e6f4c30ece13bf06e87 (patch) | |
tree | 0b54408dd09ae73a19c816f79cd4fa06ce452dbb /hw | |
parent | f169f8fbca3999fe59f37a86822f305f7292949d (diff) | |
download | hqemu-bf5f78efed26054c2ce71e6f4c30ece13bf06e87.zip hqemu-bf5f78efed26054c2ce71e6f4c30ece13bf06e87.tar.gz |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index 8ab683d..b3df8f9 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) |