aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2010-02-08 09:45:12 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-15 12:06:55 -0400
commita5061d0d9c23a6952b7138fa35d0d43523ff22d2 (patch)
treed713c2724169ed3e87c3448561d1493d6fc10519
parent10f0b81c5532a0d46a8ed992c1f6d01e5de976da (diff)
USB: remove debugging message for uevent constructions
commit cceffe9348f93188d7811bda95924d4bd3040d0f upstream. This patch (as1332) removes an unneeded and annoying debugging message announcing all USB uevent constructions. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/core/driver.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
index 60a45f1e3a67..ca479a7c69b2 100644
--- a/drivers/usb/core/driver.c
+++ b/drivers/usb/core/driver.c
@@ -691,9 +691,6 @@ static int usb_uevent(struct device *dev, struct kobj_uevent_env *env)
691{ 691{
692 struct usb_device *usb_dev; 692 struct usb_device *usb_dev;
693 693
694 /* driver is often null here; dev_dbg() would oops */
695 pr_debug("usb %s: uevent\n", dev_name(dev));
696
697 if (is_usb_device(dev)) { 694 if (is_usb_device(dev)) {
698 usb_dev = to_usb_device(dev); 695 usb_dev = to_usb_device(dev);
699 } else if (is_usb_interface(dev)) { 696 } else if (is_usb_interface(dev)) {
@@ -705,6 +702,7 @@ static int usb_uevent(struct device *dev, struct kobj_uevent_env *env)
705 } 702 }
706 703
707 if (usb_dev->devnum < 0) { 704 if (usb_dev->devnum < 0) {
705 /* driver is often null here; dev_dbg() would oops */
708 pr_debug("usb %s: already deleted?\n", dev_name(dev)); 706 pr_debug("usb %s: already deleted?\n", dev_name(dev));
709 return -ENODEV; 707 return -ENODEV;
710 } 708 }