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>
This commit is contained in:
Sasha Levin 2012-05-11 06:39:37 +02:00 committed by Greg Kroah-Hartman
parent fdf6e6390a
commit 72688dc95a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}