[Spice-devel] [PATCH spice 3/9] snd: simplify reds_register_channel() call

Frediano Ziglio fziglio at redhat.com
Thu Dec 10 10:39:20 PST 2015


> From: Marc-André Lureau <mlureau at redhat.com>
> 
> Give channel argument directly
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
> ---
>  server/sound.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/sound.c b/server/sound.c
> index 5c252c1..a8cf0b6 100644
> --- a/server/sound.c
> +++ b/server/sound.c
> @@ -1533,7 +1533,7 @@ void snd_attach_playback(SpicePlaybackInstance *sin)
>  
>      playback_worker->base_channel = channel;
>      add_worker(playback_worker);
> -    reds_register_channel(playback_worker->base_channel);
> +    reds_register_channel(channel);
>  }
>  
>  void snd_attach_record(SpiceRecordInstance *sin)
> @@ -1561,7 +1561,7 @@ void snd_attach_record(SpiceRecordInstance *sin)
>  
>      record_worker->base_channel = channel;
>      add_worker(record_worker);
> -    reds_register_channel(record_worker->base_channel);
> +    reds_register_channel(channel);
>  }
>  
>  static void snd_detach_common(SndWorker *worker)
> --
> 2.5.0
> 

Acked-by: Frediano Ziglio <fziglio at redhat.com>

Frediano


More information about the Spice-devel mailing list