[Spice-devel] [spice-common 6/8] coverity: remove unused value

Christophe Fergeau cfergeau at redhat.com
Mon Apr 4 09:04:56 UTC 2016


Acked-by: Christophe Fergeau <cfergeau at redhat.com>
(this code has been there forever in git, so this is not caused by some
buggy modification to it).

On Mon, Apr 04, 2016 at 10:03:37AM +0200, Fabiano FidĂȘncio wrote:
> len is overwritten in the match label with the value from
> "ip - anchor".
> ---
>  common/lz_compress_tmpl.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/common/lz_compress_tmpl.c b/common/lz_compress_tmpl.c
> index 3162a96..e316c4b 100644
> --- a/common/lz_compress_tmpl.c
> +++ b/common/lz_compress_tmpl.c
> @@ -214,9 +214,7 @@ static void FNAME(compress_seg)(Encoder *encoder, LzImageSegment *seg, PIXEL *fr
>                  ip += 3;
>                  ref = anchor + 2;
>                  ref_limit = (PIXEL *)(seg->lines_end);
> -#if defined(LZ_RGB16) || defined(LZ_RGB24) || defined(LZ_RGB32)
> -                len = 3;
> -#endif
> +
>                  goto match;
>              }
>          }
> -- 
> 2.7.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160404/20a3a6cd/attachment.sig>


More information about the Spice-devel mailing list