libusb: make libusb_hotplug_get_user_data actually return user_data
MFC After: 2 days Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D55291
This commit is contained in:
@@ -430,5 +430,7 @@ libusb_hotplug_get_user_data(struct libusb_context *ctx,
|
||||
}
|
||||
HOTPLUG_UNLOCK(ctx);
|
||||
|
||||
return (handle);
|
||||
if (handle != NULL)
|
||||
return (handle->user_data);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user