From: Sandhya Bankar Date: Sun, 6 Mar 2016 10:36:18 +0000 (+0530) Subject: Staging: emxx_udc: Return NULL instead of 0. X-Git-Tag: v4.6-rc1~103^2~83 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5a20df724f712e9daa9fd41b430ff63ecd203e85;p=karo-tx-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 Signed-off-by: Greg Kroah-Hartman --- 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;