[Spice-devel] [PATCH spice 9/9] red-dispatcher: group cases

Frediano Ziglio fziglio at redhat.com
Thu Dec 10 10:47:50 PST 2015


> 
> A small cleanup.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
> ---
>  server/red-dispatcher.c | 11 +++--------
>  1 file changed, 3 insertions(+), 8 deletions(-)
> 
> diff --git a/server/red-dispatcher.c b/server/red-dispatcher.c
> index 47c8179..0810798 100644
> --- a/server/red-dispatcher.c
> +++ b/server/red-dispatcher.c
> @@ -971,10 +971,11 @@ void red_dispatcher_async_complete(struct RedDispatcher
> *dispatcher,
>      pthread_mutex_unlock(&dispatcher->async_lock);
>      switch (async_command->message) {
>      case RED_WORKER_MESSAGE_UPDATE_ASYNC:
> -        break;
>      case RED_WORKER_MESSAGE_ADD_MEMSLOT_ASYNC:
> -        break;
>      case RED_WORKER_MESSAGE_DESTROY_SURFACES_ASYNC:
> +    case RED_WORKER_MESSAGE_DESTROY_SURFACE_WAIT_ASYNC:
> +    case RED_WORKER_MESSAGE_FLUSH_SURFACES_ASYNC:
> +    case RED_WORKER_MESSAGE_MONITORS_CONFIG_ASYNC:
>          break;
>      case RED_WORKER_MESSAGE_CREATE_PRIMARY_SURFACE_ASYNC:
>          red_dispatcher_create_primary_surface_complete(dispatcher);
> @@ -982,12 +983,6 @@ void red_dispatcher_async_complete(struct RedDispatcher
> *dispatcher,
>      case RED_WORKER_MESSAGE_DESTROY_PRIMARY_SURFACE_ASYNC:
>          red_dispatcher_destroy_primary_surface_complete(dispatcher);
>          break;
> -    case RED_WORKER_MESSAGE_DESTROY_SURFACE_WAIT_ASYNC:
> -        break;
> -    case RED_WORKER_MESSAGE_FLUSH_SURFACES_ASYNC:
> -        break;
> -    case RED_WORKER_MESSAGE_MONITORS_CONFIG_ASYNC:
> -        break;
>      default:
>          spice_warning("unexpected message %d", async_command->message);
>      }

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

Frediano


More information about the Spice-devel mailing list