aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorSasha Levin <levinsasha928@gmail.com>2012-05-11 00:39:37 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 18:17:31 -0400
commit72688dc95afcb42f4d5e8762f8790144cec9a280 (patch)
tree8125285f55f79bcbdda6e71f8dc2e37cfb7a7041 /drivers/usb/gadget
parentfdf6e6390a567963e302a62ef676dd648d11661c (diff)
usb: gadget: dummy_hcd: fix build when BUG is not set
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>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/dummy_hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index 83bb2e3fa861..b799106027ad 100644
--- 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)
598 struct dummy_request *req; 598 struct dummy_request *req;
599 599
600 if (!_ep || !_req) { 600 if (!_ep || !_req) {
601 __WARN(); 601 WARN_ON(1);
602 return; 602 return;
603 } 603 }
604 604