qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 13/19] hw: timer: Remove unnecessary variable


From: Michael Tokarev
Subject: [Qemu-devel] [PULL 13/19] hw: timer: Remove unnecessary variable
Date: Thu, 8 Oct 2015 19:52:22 +0300

From: Shraddha Barke <address@hidden>

Compress lines and remove the variable.

Signed-off-by: Shraddha Barke <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
 hw/timer/m48t59.c | 4 +---
 1 file changed, 1 insertion(+), 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)
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]