mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
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>
This commit is contained in:
parent
5cdbca8967
commit
eb5ec760c2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user