summaryrefslogtreecommitdiff
path: root/libusb/os
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2021-10-02 00:05:32 +0200
committerNathan Hjelm <hjelmn@me.com>2021-11-27 10:04:05 -0700
commit33d9949921423d0911527e04af8372d320f2489b (patch)
treeb274ce4e2854a7d33626365e0ff801e2a78db5fa /libusb/os
parent143a33744f7b1b6296ea105879b83adc92585e3f (diff)
downloadlibusb-33d9949921423d0911527e04af8372d320f2489b.tar.gz
Keep LIBUSB_OPTION_WEAK_AUTHORITY as a macro with same value
If the value is always the same we retain binary compatibility. References #935 Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Nathan Hjelm <hjelmn@me.com>
Diffstat (limited to 'libusb/os')
-rw-r--r--libusb/os/linux_usbfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c
index 1888c92..c300675 100644
--- a/libusb/os/linux_usbfs.c
+++ b/libusb/os/linux_usbfs.c
@@ -439,8 +439,7 @@ static int op_set_option(struct libusb_context *ctx, enum libusb_option option,
UNUSED(ctx);
UNUSED(ap);
- if (option == LIBUSB_OPTION_NO_DEVICE_DISCOVERY ||
- option == LIBUSB_OPTION_WEAK_AUTHORITY) {
+ if (option == LIBUSB_OPTION_NO_DEVICE_DISCOVERY) {
usbi_dbg(ctx, "no enumeration will be performed");
no_enumeration = 1;
return LIBUSB_SUCCESS;