Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ricardo Ribalda and committed by
Hans Verkuil
eb5ec760 5cdbca89

+1 -1
+1 -1
drivers/media/usb/uvc/uvc_driver.c
··· 878 878 unsigned int n, p; 879 879 int handled = 0; 880 880 881 - switch (le16_to_cpu(dev->udev->descriptor.idVendor)) { 881 + switch (le16_to_cpu(udev->descriptor.idVendor)) { 882 882 case 0x046d: /* Logitech */ 883 883 if (buffer[1] != 0x41 || buffer[2] != 0x01) 884 884 break;