[Spice-commits] src/usb-device-manager.c
Marc-André Lureau
elmarco at kemper.freedesktop.org
Fri Oct 7 11:39:48 UTC 2016
src/usb-device-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 364d5bbe16d8a82281f413505b620ae31912f0cc
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Fri Oct 7 15:38:27 2016 +0400
usb: fix libusb_get_active_config_descriptor()
I wrongly replaced "assert(!get_active_config())" with
"if (!get_active_config())" in the previous commit.
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index feba468..6f9ed5d 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -2026,7 +2026,7 @@ static gboolean probe_isochronous_endpoint(libusb_device *libdev)
g_return_val_if_fail(libdev != NULL, FALSE);
- if (!libusb_get_active_config_descriptor(libdev, &conf_desc)) {
+ if (libusb_get_active_config_descriptor(libdev, &conf_desc) != 0) {
g_return_val_if_reached(FALSE);
}
More information about the Spice-commits
mailing list