Skip to content

Commit eb5ec76

Browse files
ribaldaHans Verkuil
authored andcommitted
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>
1 parent 5cdbca8 commit eb5ec76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/usb/uvc/uvc_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ static int uvc_parse_vendor_control(struct uvc_device *dev,
878878
unsigned int n, p;
879879
int handled = 0;
880880

881-
switch (le16_to_cpu(dev->udev->descriptor.idVendor)) {
881+
switch (le16_to_cpu(udev->descriptor.idVendor)) {
882882
case 0x046d: /* Logitech */
883883
if (buffer[1] != 0x41 || buffer[2] != 0x01)
884884
break;

0 commit comments

Comments
 (0)