Skip to contentSkip to conversation

dma/rc4030: fix a mixed declarations and code warning

PATCH In review Yongbok Kim 2 participants 2 messages Mar 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma/rc4030: fix a mixed declarations and code warning

---
 hw/dma/rc4030.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/dma/rc4030.c +1 -1
index 8ad97f1..4dbb4fd 100644
@@ -99,8 +99,8 @@ typedef struct rc4030State
 
 static void set_next_tick(rc4030State *s)
 {
-    qemu_irq_lower(s->timer_irq);
     uint32_t tm_hz;
+    qemu_irq_lower(s->timer_irq);
 
     tm_hz = 1000 / (s->itr + 1);
 
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Yongbok Kim
Quoted 19 lines
---
 hw/dma/rc4030.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/dma/rc4030.c +1 -1
index 8ad97f1..4dbb4fd 100644
@@ -99,8 +99,8 @@ typedef struct rc4030State
 
 static void set_next_tick(rc4030State *s)
 {
-    qemu_irq_lower(s->timer_irq);
     uint32_t tm_hz;
+    qemu_irq_lower(s->timer_irq);
 
     tm_hz = 1000 / (s->itr + 1);