[Spice-devel] [spice-common 6/8] coverity: remove unused value
Fabiano FidĂȘncio
fidencio at redhat.com
Mon Apr 4 08:03:37 UTC 2016
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
More information about the Spice-devel
mailing list