mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
media: uvcvideo: Remove redundant NULL assignment
ctrl->handle will only be different than NULL for controls that have
mappings. This is because that assignment is only done inside
uvc_ctrl_set() for mapped controls.
Cc: stable@vger.kernel.org
Fixes: e5225c820c
("media: uvcvideo: Send a control event when a Control Change interrupt arrives")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20241203-uvc-fix-async-v6-2-26c867231118@chromium.org
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
d9fecd096f
commit
04d3398f66
|
@ -1640,10 +1640,8 @@ bool uvc_ctrl_status_event_async(struct urb *urb, struct uvc_video_chain *chain,
|
||||||
struct uvc_device *dev = chain->dev;
|
struct uvc_device *dev = chain->dev;
|
||||||
struct uvc_ctrl_work *w = &dev->async_ctrl;
|
struct uvc_ctrl_work *w = &dev->async_ctrl;
|
||||||
|
|
||||||
if (list_empty(&ctrl->info.mappings)) {
|
if (list_empty(&ctrl->info.mappings))
|
||||||
ctrl->handle = NULL;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
w->data = data;
|
w->data = data;
|
||||||
w->urb = urb;
|
w->urb = urb;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user