USB: avoid error messages when a device is disconnected
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 27 Mar 2013 20:14:01 +0000 (16:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 18:05:52 +0000 (11:05 -0700)
commite9e88fb7bca9f527ccdf4166a240a9023ba6ee73
treed331f018b3a10f2328257c2c48668648b0938f60
parentb13379758f17e66d60f1f288bf917762c54ebd2f
USB: avoid error messages when a device is disconnected

This patch (as1673) reduces the amount of log spew from the hub driver
by removing a bunch of error messages in the case where the device in
question is already known to have been disconnected.  Since the
disconnect event itself appears in the log, there's no need for other
error messages.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Jenya Y <jy.gerstmaier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/generic.c
drivers/usb/core/hub.c