diff options
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/saa7146_video.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c index 80352853bb5..552dab442d7 100644 --- a/drivers/media/common/saa7146_video.c +++ b/drivers/media/common/saa7146_video.c | |||
@@ -723,8 +723,6 @@ static int vidioc_g_parm(struct file *file, void *fh, | |||
723 | struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; | 723 | struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; |
724 | struct saa7146_vv *vv = dev->vv_data; | 724 | struct saa7146_vv *vv = dev->vv_data; |
725 | 725 | ||
726 | if (parm->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | ||
727 | return -EINVAL; | ||
728 | parm->parm.capture.readbuffers = 1; | 726 | parm->parm.capture.readbuffers = 1; |
729 | v4l2_video_std_frame_period(vv->standard->id, | 727 | v4l2_video_std_frame_period(vv->standard->id, |
730 | &parm->parm.capture.timeperframe); | 728 | &parm->parm.capture.timeperframe); |