diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 01:22:22 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 01:22:22 +0200 |
commit | 19050620d7676a007898ae8404ad4edc757f9d2f (patch) | |
tree | ba596ec5d3206f3e46cd899eb02473922d26abba /linux/drivers/media/video/usbvideo | |
parent | 7e579fead10182b9f9494e0f2b483dd62e4e6c75 (diff) | |
download | mediapointer-dvb-s2-19050620d7676a007898ae8404ad4edc757f9d2f.tar.gz mediapointer-dvb-s2-19050620d7676a007898ae8404ad4edc757f9d2f.tar.bz2 |
v4l-dvb: fix a bunch of sparse warnings
From: Hans Verkuil <hverkuil@xs4all.nl>
Fixed a lot of sparse warnings: mostly warnings about shadowed variables
and signed/unsigned mismatches.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/usbvideo')
-rw-r--r-- | linux/drivers/media/video/usbvideo/ibmcam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/usbvideo/ibmcam.c b/linux/drivers/media/video/usbvideo/ibmcam.c index 1afbcc147..697e74a24 100644 --- a/linux/drivers/media/video/usbvideo/ibmcam.c +++ b/linux/drivers/media/video/usbvideo/ibmcam.c @@ -736,12 +736,12 @@ static enum ParseState ibmcam_model2_320x240_parse_lines( * make black color and quit the horizontal scanning loop. */ if (((frame->curline + 2) >= scanHeight) || (i >= scanLength)) { - const int j = i * V4L_BYTES_PER_PIXEL; + const int offset = i * V4L_BYTES_PER_PIXEL; #if USES_IBMCAM_PUTPIXEL /* Refresh 'f' because we don't use it much with PUTPIXEL */ - f = frame->data + (v4l_linesize * frame->curline) + j; + f = frame->data + (v4l_linesize * frame->curline) + offset; #endif - memset(f, 0, v4l_linesize - j); + memset(f, 0, v4l_linesize - offset); break; } |