]> err.no Git - linux-2.6/commitdiff
[PATCH] USB: get rid of minor log spamming
authorDavid Brownell <david-b@pacbell.net>
Wed, 31 Aug 2005 17:45:25 +0000 (10:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 12 Sep 2005 19:23:43 +0000 (12:23 -0700)
Routine cases like handoff-to-companion shouldn't trigger diagnostics.
This gets rid of some recently added log spamming.  It's routine for
hub_port_wait_reset() to return -ENOTCONN to indicate handoff from
highspeed hubs to companions, so an error message is incorrect.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c

index 758c7f0ed1597d7a5b40028fd60df841236c6423..c55208299cf85cb93d1669aa0feb32ec35c1eb27 100644 (file)
@@ -1460,7 +1460,7 @@ static int hub_port_reset(struct usb_hub *hub, int port1,
                                        port1, status);
                else {
                        status = hub_port_wait_reset(hub, port1, udev, delay);
-                       if (status)
+                       if (status && status != -ENOTCONN)
                                dev_dbg(hub->intfdev,
                                                "port_wait_reset: err = %d\n",
                                                status);