Skip to content

Commit

Permalink
usb: gadget: dummy_hcd: fix build when BUG is not set
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sasha Levin authored and Greg Kroah-Hartman committed May 11, 2012
1 parent fdf6e63 commit 72688dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/dummy_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 72688dc

Please sign in to comment.