usb: gadget: dummy_hcd: fix build when BUG is not set
authorSasha Levin <levinsasha928@gmail.com>
Fri, 11 May 2012 04:39:37 +0000 (06:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 May 2012 22:17:31 +0000 (15:17 -0700)
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>
drivers/usb/gadget/dummy_hcd.c

index 83bb2e3fa86107fa07535f45da744e2ac000585a..b799106027adfc5d75a45244a47fbd015bedfd20 100644 (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;
        }