Patchwork adlib: remove write-only variable

login
register
mail settings
Submitter Hervé Poussineau
Date Sept. 18, 2011, 2:27 p.m.
Message ID <1316356043-31252-1-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/115245/
State New
Headers show

Comments

Hervé Poussineau - Sept. 18, 2011, 2:27 p.m.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/adlib.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
Anthony Liguori - Sept. 23, 2011, 6:51 p.m.
On 09/18/2011 09:27 AM, Hervé Poussineau wrote:
>
> Signed-off-by: Hervé Poussineau<hpoussin@reactos.org>

Applied.  Thanks.

Regards,

Anthony Liguori

> ---
>   hw/adlib.c |    5 ++---
>   1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/hw/adlib.c b/hw/adlib.c
> index d98aebc..66db797 100644
> --- a/hw/adlib.c
> +++ b/hw/adlib.c
> @@ -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
>   }
>

Patch

diff --git a/hw/adlib.c b/hw/adlib.c
index d98aebc..66db797 100644
--- a/hw/adlib.c
+++ b/hw/adlib.c
@@ -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
 }