mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] usb: gadget: dummy_hcd: fix build when BUG is not set
@ 2012-05-11  4:39 Sasha Levin
  0 siblings, 0 replies; only message in thread
From: Sasha Levin @ 2012-05-11  4:39 UTC (permalink / raw)
  To: balbi, gregkh; +Cc: linux-usb, linux-kernel, Sasha Levin

Use WARN_ON() instead of __WARN, which also means we won't use any
internal macros.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
---
 drivers/usb/gadget/dummy_hcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index 83bb2e3..b799106 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)
 	struct dummy_request	*req;
 
 	if (!_ep || !_req) {
-		__WARN();
+		WARN_ON(1);
 		return;
 	}
 
-- 
1.7.8.5


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-11  4:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-11  4:39 [PATCH] usb: gadget: dummy_hcd: fix build when BUG is not set Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®