Skip to contentSkip to conversation

usb: gadget: dummy_hcd: fix build when BUG is not set

PATCH New Sasha Levin 1 participant 1 message May 11, 2012 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/usb/gadget/dummy_hcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/gadget/dummy_hcd.c +1 -1
index 83bb2e3..b799106 100644
@@ -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;
 	}
 
Signature · 1 line
1.7.8.5