[Spice-devel] [spice-common PATCH] canvas_base: Remove redundant switch case block

Pavel Grunt pgrunt at redhat.com
Mon Nov 23 23:32:04 PST 2015


On Mon, 2015-11-23 at 17:37 +0100, Lukas Venhoda wrote:
> ---
>  common/canvas_base.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/common/canvas_base.c b/common/canvas_base.c
> index 6f48340..6747465 100644
> --- a/common/canvas_base.c
> +++ b/common/canvas_base.c
> @@ -1147,10 +1147,7 @@ static pixman_image_t
> *canvas_get_image_internal(CanvasBase *canvas, SpiceImage
>          break;
>      }
>  #if defined(SW_CANVAS_CACHE)
> -    case SPICE_IMAGE_TYPE_LZ_PLT: {
> -        surface = canvas_get_lz(canvas, image, want_original);
> -        break;
> -    }
> +    case SPICE_IMAGE_TYPE_LZ_PLT:
>      case SPICE_IMAGE_TYPE_LZ_RGB: {
>          surface = canvas_get_lz(canvas, image, want_original);
>          break;

Acked-by: Pavel Grunt <pgrunt at redhat.com>

and pushed, thanks

Pavel


More information about the Spice-devel mailing list