diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2025-07-25 11:01:30 +0000 |
---|---|---|
committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-09-13 18:35:02 +0200 |
commit | eb5ec760c25b1fd0af3cc43fb0dbc8e5eba11025 (patch) | |
tree | b5a5edb40cd3617ee2fb99b3f2f813b3c0fc4cb1 | |
parent | 5cdbca8967dc804829883e251a9d197b5fab4aed (diff) |
media: uvcvideo: Do not re-reference dev->udev
dev->udev is already referenced by the variable udev. Let's use it.
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
-rw-r--r-- | drivers/media/usb/uvc/uvc_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 9c86587bec56..10df845fb17e 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -878,7 +878,7 @@ static int uvc_parse_vendor_control(struct uvc_device *dev, unsigned int n, p; int handled = 0; - switch (le16_to_cpu(dev->udev->descriptor.idVendor)) { + switch (le16_to_cpu(udev->descriptor.idVendor)) { case 0x046d: /* Logitech */ if (buffer[1] != 0x41 || buffer[2] != 0x01) break; |