qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] adlib: remove write-only variable
@ 2011-09-18 14:27 Hervé Poussineau
  2011-09-23 18:51 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Hervé Poussineau @ 2011-09-18 14:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Hervé Poussineau


Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 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
 }
 
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] adlib: remove write-only variable
  2011-09-18 14:27 [Qemu-devel] [PATCH] adlib: remove write-only variable Hervé Poussineau
@ 2011-09-23 18:51 ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2011-09-23 18:51 UTC (permalink / raw)
  To: Hervé Poussineau; +Cc: qemu-devel

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
>   }
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-23 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-18 14:27 [Qemu-devel] [PATCH] adlib: remove write-only variable Hervé Poussineau
2011-09-23 18:51 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).