sanei_usb: Fall through to the end of sanei_usb_get_descriptor()

merge-requests/83/head
Povilas Kanapickas 2019-04-27 12:16:10 +03:00
rodzic 422e083175
commit 0b5ab0b5e4
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -2982,7 +2982,6 @@ sanei_usb_get_descriptor( SANE_Int dn,
desc->dev_sub_class = usb_descr->bDeviceSubClass;
desc->dev_protocol = usb_descr->bDeviceProtocol;
desc->max_packet_size = usb_descr->bMaxPacketSize0;
return SANE_STATUS_GOOD;
}
#elif defined(HAVE_LIBUSB)
{
@ -3007,7 +3006,6 @@ sanei_usb_get_descriptor( SANE_Int dn,
desc->dev_sub_class = lu_desc.bDeviceSubClass;
desc->dev_protocol = lu_desc.bDeviceProtocol;
desc->max_packet_size = lu_desc.bMaxPacketSize0;
return SANE_STATUS_GOOD;
}
#else /* not HAVE_LIBUSB_LEGACY && not HAVE_LIBUSB */
{
@ -3015,4 +3013,5 @@ sanei_usb_get_descriptor( SANE_Int dn,
return SANE_STATUS_UNSUPPORTED;
}
#endif /* not HAVE_LIBUSB_LEGACY && not HAVE_LIBUSB */
return SANE_STATUS_GOOD;
}