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/gspca/gspca.c | |
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/gspca/gspca.c')
-rw-r--r-- | linux/drivers/media/video/gspca/gspca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c index df7c5cb0a..0d705af05 100644 --- a/linux/drivers/media/video/gspca/gspca.c +++ b/linux/drivers/media/video/gspca/gspca.c @@ -1408,7 +1408,7 @@ static int vidioc_dqbuf(struct file *file, void *priv, i = ret; /* frame index */ frame = &gspca_dev->frame[i]; if (gspca_dev->memory == V4L2_MEMORY_USERPTR) { - if (copy_to_user((__u8 *) frame->v4l2_buf.m.userptr, + if (copy_to_user((__u8 __user *) frame->v4l2_buf.m.userptr, frame->data, frame->v4l2_buf.bytesused)) { PDEBUG(D_ERR|D_STREAM, |