Skip to content

Commit

Permalink
drivers/libusb0.c: libusb_open(): comment about if (!callback){...}
Browse files Browse the repository at this point in the history
… check

Signed-off-by: Jim Klimov <[email protected]>
jimklimov committed Jul 31, 2024
1 parent ea99f96 commit 14dbd8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/libusb0.c
Original file line number Diff line number Diff line change
@@ -542,6 +542,10 @@ static int libusb_open(usb_dev_handle **udevp,

nut_usb_set_altinterface(udev);

/* Did the driver provide a callback method for any further
* device acceptance checks (e.g. when same ID is supported
* by several sub-drivers, differing by vendor/model strings)?
*/
if (!callback) {
return 1;
}

0 comments on commit 14dbd8c

Please sign in to comment.