[Mesa-dev] [PATCH] g3dvl: Remove unused loop variable.

Vinson Lee vlee at vmware.com
Mon Oct 24 12:16:26 PDT 2011


Fixes Coverity uninitialized scalar variable defect.
---
 src/gallium/auxiliary/vl/vl_mpeg12_decoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
index 7e7fa99..d4b8ae0 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
@@ -340,7 +340,7 @@ UploadYcbcrBlocks(struct vl_mpeg12_decoder *dec,
    intra = mb->macroblock_type & PIPE_MPEG12_MB_TYPE_INTRA ? 1 : 0;
 
    for (y = 0; y < 2; ++y) {
-      for (x = 0; x < 2; ++x, ++tb) {
+      for (x = 0; x < 2; ++x) {
          if (mb->coded_block_pattern & const_empty_block_mask_420[0][y][x]) {
 
             struct vl_ycbcr_block *stream = buf->ycbcr_stream[0];
-- 
1.7.1



More information about the mesa-dev mailing list