Re: [PATCH 1/7] staging: usbip: stub: update refcounts for devices and interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Unnecessary stucture element "interface":
struct stub_device {
-       struct usb_interface *interface;
+       struct usb_device *udev;
       struct list_head list;
...

sdev->interface never used. Except:
          -"usb_lock_device_for_reset(udev, sdev->interface);"
            sdev->interface : optional (interface bound to the driver
making the request)

          -printing sdev->interface->dev (device id)
           instead usable: sdev->udev

Since structural changes have occurred: "Fix multiple interfaces" patch
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux