Skip to content

Commit

Permalink
Staging: emxx_udc: Return NULL instead of 0.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sandhya-Bankar authored and gregkh committed Mar 12, 2016
1 parent 0430988 commit 5a20df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/emxx_udc/emxx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a20df7

Please sign in to comment.