1
0
Fork 0

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-06 16:06:18 +05:30 committed by Greg Kroah-Hartman
parent 0430988693
commit 5a20df724f

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;