From: David Brownell Date: Wed, 31 Aug 2005 17:45:25 +0000 (-0700) Subject: [PATCH] USB: get rid of minor log spamming X-Git-Tag: v2.6.14-rc1~11^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dd16525b698528172899f10c14a3eb6ddb888a53;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 758c7f0ed15..c55208299cf 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);