]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ehci remove warning if no CONFIG_USB_DEBUG
authorDavid Brownell <david-b@pacbell.net>
Fri, 31 May 2002 07:18:01 +0000 (00:18 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 31 May 2002 07:18:01 +0000 (00:18 -0700)
I just noticed a debug message will generate a needless warning
when debugging is disabled.

drivers/usb/host/ehci-q.c

index ca32e98d90eb4b68b4daadd4f08ddc927de77fce..f8725f64ac85a3e965377fed7985e187c4a6b7ab 100644 (file)
@@ -144,11 +144,13 @@ static inline void qtd_copy_status (struct urb *urb, size_t length, u32 token)
                                        usb_pipeendpoint (pipe),
                                        usb_pipeout (pipe));
                        if (urb->dev->tt && !usb_pipeint (pipe)) {
+#ifdef DEBUG
                                struct usb_device *tt = urb->dev->tt->hub;
                                dbg ("clear tt %s-%s p%d buffer, a%d ep%d",
                                        tt->bus->bus_name, tt->devpath,
                                        urb->dev->ttport, urb->dev->devnum,
                                        usb_pipeendpoint (pipe));
+#endif /* DEBUG */
                                usb_hub_tt_clear_buffer (urb->dev, pipe);
                        }
                }