OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf6e63
)
usb: gadget: dummy_hcd: fix build when BUG is not set
author
Sasha Levin
<levinsasha928@gmail.com>
Fri, 11 May 2012 04:39:37 +0000
(06:39 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 11 May 2012 22:17:31 +0000
(15:17 -0700)
Use WARN_ON() instead of __WARN, which also means we won't use any
internal macros.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/dummy_hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/dummy_hcd.c
b/drivers/usb/gadget/dummy_hcd.c
index
83bb2e3
..
b799106
100644
(file)
--- a/
drivers/usb/gadget/dummy_hcd.c
+++ b/
drivers/usb/gadget/dummy_hcd.c
@@
-598,7
+598,7
@@
static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req)
struct dummy_request *req;
if (!_ep || !_req) {
-
__WARN(
);
+
WARN_ON(1
);
return;
}