summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2022-01-06 15:34:21 +0000
committerRichard Hughes <richard@hughsie.com>2022-01-06 19:21:23 +0000
commitd97d7d9b6c581103ec1a1b31f24b14565ad23be9 (patch)
treeaf65a25406aa89c44f30ffd6fb2295c3742d8696
parentb070e22ef3c8d9568c465de15543074ada128e06 (diff)
downloadgusb-d97d7d9b6c581103ec1a1b31f24b14565ad23be9.tar.gz
trivial: Remove the '1:1 already exists' debug lines on rescan
-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);