summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gusb/gusb-context.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c
index 7f058d9..a1edb8d 100644
--- a/gusb/gusb-context.c
+++ b/gusb/gusb-context.c
@@ -285,10 +285,8 @@ g_usb_context_add_device (GUsbContext *context,
if (priv->done_enumerate)
device = g_usb_context_find_by_bus_address (context, bus, address, NULL);
- if (device != NULL) {
- g_debug ("%i:%i already exists", bus, address);
+ if (device != NULL)
goto out;
- }
/* add the device */
device = _g_usb_device_new (context, dev, &error);