summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2005-08-31 10:45:25 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-12 12:23:43 -0700
commitdd16525b698528172899f10c14a3eb6ddb888a53 (patch)
tree9257e66cc06b3c8c4578f0d6b335f5522d45d28c /drivers/usb
parentf7201c3dcd7799f2aa3d6ec427b194225360ecee (diff)
downloadlinux-stable-dd16525b698528172899f10c14a3eb6ddb888a53.tar.gz
linux-stable-dd16525b698528172899f10c14a3eb6ddb888a53.tar.bz2
linux-stable-dd16525b698528172899f10c14a3eb6ddb888a53.zip
[PATCH] USB: get rid of minor log spamming
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 758c7f0ed159..c55208299cf8 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -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);