Commit 6aba72cf authored by Márton Németh's avatar Márton Németh Committed by Mauro Carvalho Chehab

V4L/DVB: zoran: remove variable shadowing

The loop counter j is declared twice in function error_handler().
Remove the redundant declaration.

This will remove the following sparse warning (see "make C=1"):
 * symbol 'j' shadows an earlier one
Signed-off-by: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent db1b7265
...@@ -1229,7 +1229,7 @@ error_handler (struct zoran *zr, ...@@ -1229,7 +1229,7 @@ error_handler (struct zoran *zr,
u32 astat, u32 astat,
u32 stat) u32 stat)
{ {
int i, j; int i;
/* This is JPEG error handling part */ /* This is JPEG error handling part */
if (zr->codec_mode != BUZ_MODE_MOTION_COMPRESS && if (zr->codec_mode != BUZ_MODE_MOTION_COMPRESS &&
...@@ -1280,6 +1280,7 @@ error_handler (struct zoran *zr, ...@@ -1280,6 +1280,7 @@ error_handler (struct zoran *zr,
/* Report error */ /* Report error */
if (zr36067_debug > 1 && zr->num_errors <= 8) { if (zr36067_debug > 1 && zr->num_errors <= 8) {
long frame; long frame;
int j;
frame = zr->jpg_pend[zr->jpg_dma_tail & BUZ_MASK_FRAME]; frame = zr->jpg_pend[zr->jpg_dma_tail & BUZ_MASK_FRAME];
printk(KERN_ERR printk(KERN_ERR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment