summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/s2255/s2255drv.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-02-15 10:07:13 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-05 19:40:25 +0100
commit3c728118e00c42a177f9a5d0295b2a08591bddcb (patch)
tree923c2d7b6d280da530d94abb837ae10214b59448 /drivers/media/usb/s2255/s2255drv.c
parent[media] s2255: fix field handling (diff)
downloadlinux-3c728118e00c42a177f9a5d0295b2a08591bddcb.tar.xz
linux-3c728118e00c42a177f9a5d0295b2a08591bddcb.zip
[media] s2255: don't zero struct v4l2_streamparm
All fields after 'type' are already zeroed by the core framework. Clearing the full struct also clears 'type', which causes a wrong type value to be returned. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/s2255/s2255drv.c')
-rw-r--r--drivers/media/usb/s2255/s2255drv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/usb/s2255/s2255drv.c b/drivers/media/usb/s2255/s2255drv.c
index 9693eb9d9e8d..eaae9d167e76 100644
--- a/drivers/media/usb/s2255/s2255drv.c
+++ b/drivers/media/usb/s2255/s2255drv.c
@@ -1476,7 +1476,6 @@ static int vidioc_g_parm(struct file *file, void *priv,
struct s2255_channel *channel = fh->channel;
if (sp->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
- memset(sp, 0, sizeof(struct v4l2_streamparm));
sp->parm.capture.capability = V4L2_CAP_TIMEPERFRAME;
sp->parm.capture.capturemode = channel->cap_parm.capturemode;
def_num = (channel->mode.format == FORMAT_NTSC) ? 1001 : 1000;