projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d3380
)
USB: remove debugging message for uevent constructions
author
Alan Stern
<
[email protected]
>
Mon, 8 Feb 2010 14:45:12 +0000
(09:45 -0500)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 2 Mar 2010 22:55:02 +0000
(14:55 -0800)
This patch (as1332) removes an unneeded and annoying debugging message
announcing all USB uevent constructions.
Signed-off-by: Alan Stern <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/core/driver.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/driver.c
b/drivers/usb/core/driver.c
index 6850ec6576f84337044dd409556ee8712a090a36..a7037bf81688df84e47db4f9289841bb918aed86 100644
(file)
--- a/
drivers/usb/core/driver.c
+++ b/
drivers/usb/core/driver.c
@@
-710,9
+710,6
@@
static int usb_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct usb_device *usb_dev;
- /* driver is often null here; dev_dbg() would oops */
- pr_debug("usb %s: uevent\n", dev_name(dev));
-
if (is_usb_device(dev)) {
usb_dev = to_usb_device(dev);
} else if (is_usb_interface(dev)) {
@@
-724,6
+721,7
@@
static int usb_uevent(struct device *dev, struct kobj_uevent_env *env)
}
if (usb_dev->devnum < 0) {
+ /* driver is often null here; dev_dbg() would oops */
pr_debug("usb %s: already deleted?\n", dev_name(dev));
return -ENODEV;
}