mirror of https://gitee.com/openkylin/linux.git
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:
parent
0430988693
commit
5a20df724f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue