usb-device: Remove useless check for LIBUSB_HAS_GET_DRIVER_NP
This commit is contained in:
1 parent
08e53f404d
commit
287cb10250
1 file changed
+1
-1
+1
-1
@@ -135,7 +135,7 @@ static struct usb_device_info * usb_device_is_valid(struct usb_device * dev) {
|
|||||||
|
|
||||||
usb_descriptor_info_print(udev, dev, product, sizeof(product));
|
usb_descriptor_info_print(udev, dev, product, sizeof(product));
|
||||||
|
|
||||||
#if defined(LIBUSB_HAS_GET_DRIVER_NP) && defined(LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP)
|
#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP
|
||||||
PRINTF_LINE("Detaching kernel from USB interface...");
|
PRINTF_LINE("Detaching kernel from USB interface...");
|
||||||
usb_detach_kernel_driver_np(udev, usb_devices[i].interface);
|
usb_detach_kernel_driver_np(udev, usb_devices[i].interface);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user