Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c86af711 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

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



All kmalloc-based functions print enough information on failures.

Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e2088ec0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);