提交 c4d6618e 编写于 作者: W Wolfram Sang 提交者: Felipe Balbi

usb: gadget: udc: udc-xilinx: don't print on ENOMEM

All kmalloc-based functions print enough information on failures.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 1a7c1d58
......@@ -973,10 +973,8 @@ static struct usb_request *xudc_ep_alloc_request(struct usb_ep *_ep,
udc = ep->udc;
req = kzalloc(sizeof(*req), gfp_flags);
if (!req) {
dev_err(udc->dev, "%s:not enough memory", __func__);
if (!req)
return NULL;
}
req->ep = ep;
INIT_LIST_HEAD(&req->queue);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册