Skip to contentSkip to conversation

adlib: remove write-only variable

PATCH Applied Hervé Poussineau 2 participants 2 messages Sep 18, 2011 – Sep 23, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 adlib: remove write-only variable

---
 hw/adlib.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
hw/adlib.c +2 -3
index d98aebc..66db797 100644
@@ -119,7 +119,6 @@ static IO_WRITE_PROTO (adlib_write)
 {
     AdlibState *s = opaque;
     int a = nport & 3;
-    int status;
 
     s->active = 1;
     AUD_set_active_out (s->voice, 1);
@@ -127,9 +126,9 @@ static IO_WRITE_PROTO (adlib_write)
     adlib_kill_timers (s);
 
 #ifdef HAS_YMF262
-    status = YMF262Write (0, a, val);
+    YMF262Write (0, a, val);
 #else
-    status = OPLWrite (s->opl, a, val);
+    OPLWrite (s->opl, a, val);
 #endif
 }
 
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 2 lines · Hervé Poussineau

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 28 lines
---
  hw/adlib.c |    5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)
hw/adlib.c +2 -3
index d98aebc..66db797 100644
@@ -119,7 +119,6 @@ static IO_WRITE_PROTO (adlib_write)
  {
      AdlibState *s = opaque;
      int a = nport&  3;
-    int status;
 
      s->active = 1;
      AUD_set_active_out (s->voice, 1);
@@ -127,9 +126,9 @@ static IO_WRITE_PROTO (adlib_write)
      adlib_kill_timers (s);
 
  #ifdef HAS_YMF262
-    status = YMF262Write (0, a, val);
+    YMF262Write (0, a, val);
  #else
-    status = OPLWrite (s->opl, a, val);
+    OPLWrite (s->opl, a, val);
  #endif
  }