usb: gadget: net2280: Dont use 0 as NULL pointer
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Tue, 13 Jan 2015 09:54:58 +0000 (10:54 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 15 Jan 2015 15:41:49 +0000 (09:41 -0600)
Fix sparse warning

Fixes: cb442ee1592d2681 (usb: gadget: udc: net2280: Re-enable dynamic debug messages)
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/net2280.c

index d2fabdc0deaafae70e70fc0eb351b510204ed2b7..6411ed8e14bcd4a4830889a90b01a06ab9932253 100644 (file)
@@ -2287,7 +2287,7 @@ static void handle_ep_small(struct net2280_ep *ep)
        ep->irqs++;
 
        ep_vdbg(ep->dev, "%s ack ep_stat %08x, req %p\n",
-                       ep->ep.name, t, req ? &req->req : 0);
+                       ep->ep.name, t, req ? &req->req : NULL);
 
        if (!ep->is_in || (ep->dev->quirks & PLX_2280))
                writel(t & ~BIT(NAK_OUT_PACKETS), &ep->regs->ep_stat);