diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2021-06-18 14:29:05 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-09-30 10:07:46 +0200 |
commit | a2f8a484fbc96b8209a760cb3f2c95ca49c2cdb1 (patch) | |
tree | d3fe79e7343371774aa837c14d425f148af25f0d | |
parent | e4ba563d4d4f14c3cda140ae47e0a4e2dcdd639c (diff) | |
download | lwn-a2f8a484fbc96b8209a760cb3f2c95ca49c2cdb1.tar.gz lwn-a2f8a484fbc96b8209a760cb3f2c95ca49c2cdb1.zip |
media: uvcvideo: Do not check for V4L2_CTRL_WHICH_DEF_VAL
The framework already checks for us if V4L2_CTRL_WHICH_DEF_VAL is
written.
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | drivers/media/usb/uvc/uvc_v4l2.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.c index 6acb8013de08..102fa39a1615 100644 --- a/drivers/media/usb/uvc/uvc_v4l2.c +++ b/drivers/media/usb/uvc/uvc_v4l2.c @@ -1101,10 +1101,6 @@ static int uvc_ioctl_s_try_ext_ctrls(struct uvc_fh *handle, unsigned int i; int ret; - /* Default value cannot be changed */ - if (ctrls->which == V4L2_CTRL_WHICH_DEF_VAL) - return -EINVAL; - ret = uvc_ctrl_begin(chain); if (ret < 0) return ret; |