On Fri Jul 25 11:01:30 2025 +0000, Ricardo Ribalda wrote:
> dev->udev is already referenced by the variable udev. Let's use it.
> 
> Signed-off-by: Ricardo Ribalda <[email protected]>
> Reviewed-by: Laurent Pinchart <[email protected]>
> Signed-off-by: Laurent Pinchart <[email protected]>
> Signed-off-by: Hans de Goede <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/media/usb/uvc/uvc_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

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;

Reply via email to