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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e2088ec002
commit
c86af711a6
@ -973,10 +973,8 @@ static struct usb_request *xudc_ep_alloc_request(struct usb_ep *_ep,
|
|||||||
|
|
||||||
udc = ep->udc;
|
udc = ep->udc;
|
||||||
req = kzalloc(sizeof(*req), gfp_flags);
|
req = kzalloc(sizeof(*req), gfp_flags);
|
||||||
if (!req) {
|
if (!req)
|
||||||
dev_err(udc->dev, "%s:not enough memory", __func__);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
req->ep = ep;
|
req->ep = ep;
|
||||||
INIT_LIST_HEAD(&req->queue);
|
INIT_LIST_HEAD(&req->queue);
|
||||||
|
Loading…
Reference in New Issue
Block a user