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>
This commit is contained in:
Sandhya Bankar
2016-03-11 22:09:09 -08:00
committed by Greg Kroah-Hartman
parent 0430988693
commit 5a20df724f
+1 -1
View File
@@ -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;