hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/usb/core/sysfs.c
....@@ -889,11 +889,7 @@
889889 size_t srclen, n;
890890 int cfgno;
891891 void *src;
892
- int retval;
893892
894
- retval = usb_lock_device_interruptible(udev);
895
- if (retval < 0)
896
- return -EINTR;
897893 /* The binary attribute begins with the device descriptor.
898894 * Following that are the raw descriptor entries for all the
899895 * configurations (config plus subsidiary descriptors).
....@@ -918,7 +914,6 @@
918914 off -= srclen;
919915 }
920916 }
921
- usb_unlock_device(udev);
922917 return count - nleft;
923918 }
924919