提交 5a20df72 编写于 作者: S Sandhya Bankar 提交者: Greg Kroah-Hartman

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: NSandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 04309886
...@@ -2625,7 +2625,7 @@ static struct usb_request *nbu2ss_ep_alloc_request( ...@@ -2625,7 +2625,7 @@ static struct usb_request *nbu2ss_ep_alloc_request(
req = kzalloc(sizeof(*req), gfp_flags); req = kzalloc(sizeof(*req), gfp_flags);
if (!req) if (!req)
return 0; return NULL;
#ifdef USE_DMA #ifdef USE_DMA
req->req.dma = DMA_ADDR_INVALID; req->req.dma = DMA_ADDR_INVALID;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册