Commit f6d68b3b authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] ehci remove warning if no CONFIG_USB_DEBUG

I just noticed a debug message will generate a needless warning
when debugging is disabled.
parent e004e79e
...@@ -144,11 +144,13 @@ static inline void qtd_copy_status (struct urb *urb, size_t length, u32 token) ...@@ -144,11 +144,13 @@ static inline void qtd_copy_status (struct urb *urb, size_t length, u32 token)
usb_pipeendpoint (pipe), usb_pipeendpoint (pipe),
usb_pipeout (pipe)); usb_pipeout (pipe));
if (urb->dev->tt && !usb_pipeint (pipe)) { if (urb->dev->tt && !usb_pipeint (pipe)) {
#ifdef DEBUG
struct usb_device *tt = urb->dev->tt->hub; struct usb_device *tt = urb->dev->tt->hub;
dbg ("clear tt %s-%s p%d buffer, a%d ep%d", dbg ("clear tt %s-%s p%d buffer, a%d ep%d",
tt->bus->bus_name, tt->devpath, tt->bus->bus_name, tt->devpath,
urb->dev->ttport, urb->dev->devnum, urb->dev->ttport, urb->dev->devnum,
usb_pipeendpoint (pipe)); usb_pipeendpoint (pipe));
#endif /* DEBUG */
usb_hub_tt_clear_buffer (urb->dev, pipe); usb_hub_tt_clear_buffer (urb->dev, pipe);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment