diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2015-01-13 10:54:58 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-15 09:41:49 -0600 |
commit | fc12c68b4ff2904c3322b7a12089f0b9808e2383 (patch) | |
tree | 4734d971cd861b97481f9c09b37352785072de23 /drivers/usb/gadget/udc/net2280.c | |
parent | c76abecc42b63f70d33f9e266c62002c2b1234d1 (diff) | |
download | op-kernel-dev-fc12c68b4ff2904c3322b7a12089f0b9808e2383.zip op-kernel-dev-fc12c68b4ff2904c3322b7a12089f0b9808e2383.tar.gz |
usb: gadget: net2280: Dont use 0 as NULL pointer
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>
Diffstat (limited to 'drivers/usb/gadget/udc/net2280.c')
-rw-r--r-- | drivers/usb/gadget/udc/net2280.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c index d2fabdc..6411ed8 100644 --- a/drivers/usb/gadget/udc/net2280.c +++ b/drivers/usb/gadget/udc/net2280.c @@ -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); |