2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00

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

All kmalloc-based functions print enough information on failures.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
Wolfram Sang 2016-08-25 19:39:05 +02:00 committed by Felipe Balbi
parent 1a7c1d58c6
commit c4d6618e88

View File

@ -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);