diff options
author | Sandhya Bankar <bankarsandhya512@gmail.com> | 2016-03-06 16:06:18 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 5a20df724f712e9daa9fd41b430ff63ecd203e85 (patch) | |
tree | 0372706353153b397ac1db263d46009e43385cea /drivers/staging/emxx_udc | |
parent | staging: netlogic: Replace pr_* with netdev_* (diff) | |
download | linux-dev-5a20df724f712e9daa9fd41b430ff63ecd203e85.tar.xz linux-dev-5a20df724f712e9daa9fd41b430ff63ecd203e85.zip |
Staging: emxx_udc: Return NULL instead of 0.
Return NULL instead of 0 from nbu2ss_ep_alloc_request(),if req pointer is NULL.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/emxx_udc')
-rw-r--r-- | drivers/staging/emxx_udc/emxx_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index d38673c27ae6..e8cacaecf9ad 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -2625,7 +2625,7 @@ static struct usb_request *nbu2ss_ep_alloc_request( req = kzalloc(sizeof(*req), gfp_flags); if (!req) - return 0; + return NULL; #ifdef USE_DMA req->req.dma = DMA_ADDR_INVALID; |