mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
media: pvrusb2: Do not check for V4L2_CTRL_WHICH_DEF_VAL
The framework already checks for us if V4L2_CTRL_WHICH_DEF_VAL is written. Cc: Mike Isely <isely@pobox.com> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
861f92cb91
commit
e4ba563d4d
1 changed files with 0 additions and 4 deletions
|
@ -640,10 +640,6 @@ static int pvr2_s_ext_ctrls(struct file *file, void *priv,
|
|||
unsigned int idx;
|
||||
int ret;
|
||||
|
||||
/* Default value cannot be changed */
|
||||
if (ctls->which == V4L2_CTRL_WHICH_DEF_VAL)
|
||||
return -EINVAL;
|
||||
|
||||
ret = 0;
|
||||
for (idx = 0; idx < ctls->count; idx++) {
|
||||
ctrl = ctls->controls + idx;
|
||||
|
|
Loading…
Reference in a new issue