Commit 0aa13ba4 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: make usb_unlink_urb() message only show up if CONFIG_DEBUG_KERNEL is enabled.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 3aaad15a
......@@ -451,9 +451,11 @@ int usb_unlink_urb(struct urb *urb)
if (!urb)
return -EINVAL;
if (!(urb->transfer_flags & URB_ASYNC_UNLINK)) {
#ifdef CONFIG_DEBUG_KERNEL
printk(KERN_NOTICE "usb_unlink_urb() is deprecated for "
"synchronous unlinks. Use usb_kill_urb()\n");
"synchronous unlinks. Use usb_kill_urb() instead.\n");
WARN_ON(1);
#endif
usb_kill_urb(urb);
return 0;
}
......
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