OSDN Git Service

USB: debugging code shouldn't alter control flow
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 2 Feb 2012 20:38:14 +0000 (15:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 00:15:44 +0000 (16:15 -0800)
commit0cb54a3e47cb4baf0bc7463f0a64cfeae5e35697
treed3467c2aaf4509597ff5c692c9ac924a209f748f
parentc39c654fa2a830e1f73a2c118bf0c59ee18f3248
USB: debugging code shouldn't alter control flow

People have complained that debugging code shouldn't alter the flow of
control; it should restrict itself to printing out warnings and error
messages.  Bowing to popular opinion, this patch (as1518) changes the
debugging checks in usb_submit_urb() to follow this guideline.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Keith Packard <keithp@keithp.com>
CC: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/urb.c