From: Christian König Date: Wed, 2 Nov 2011 12:54:05 +0000 (+0100) Subject: g3dvl: remove some stale variable increment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a7e645c9befb8578c8a571ccc951ed908d177ae;p=mesa.git g3dvl: remove some stale variable increment Incrementing "td" before initializing it is pointless and just leads to an uninitialized variable warning with MSVC. Signed-off-by: Christian König --- diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c index 7e7fa994b26..d4b8ae0417a 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];