projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f169f8f
)
hw: timer: Remove unnecessary variable
author
Shraddha Barke
<shraddha.6596@gmail.com>
Fri, 25 Sep 2015 14:36:03 +0000
(20:06 +0530)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Thu, 8 Oct 2015 16:46:47 +0000
(19:46 +0300)
Compress lines and remove the variable.
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/timer/m48t59.c
patch
|
blob
|
history
diff --git
a/hw/timer/m48t59.c
b/hw/timer/m48t59.c
index 8ab683ddacdfed0199b75ad665645f153e777a8e..b3df8f9ec9a4dfd33e15238771650f68b68b7670 100644
(file)
--- 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)