From 14dbd8c5ecc35209156382ea43be021abbdccd9b Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Wed, 31 Jul 2024 18:49:17 +0200 Subject: [PATCH] drivers/libusb0.c: libusb_open(): comment about `if (!callback){...}` check Signed-off-by: Jim Klimov --- drivers/libusb0.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/libusb0.c b/drivers/libusb0.c index bc73eb2a99..64dc70c093 100644 --- a/drivers/libusb0.c +++ b/drivers/libusb0.c @@ -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; }