Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sandhya Bankar and committed by
Greg Kroah-Hartman
5a20df72 04309886

+1 -1
+1 -1
drivers/staging/emxx_udc/emxx_udc.c
··· 2625 2625 2626 2626 req = kzalloc(sizeof(*req), gfp_flags); 2627 2627 if (!req) 2628 - return 0; 2628 + return NULL; 2629 2629 2630 2630 #ifdef USE_DMA 2631 2631 req->req.dma = DMA_ADDR_INVALID;