usb: gadget: udc: udc-xilinx: don't print on ENOMEM
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 25 Aug 2016 17:39:05 +0000 (19:39 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 29 Aug 2016 07:47:56 +0000 (10:47 +0300)
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>
drivers/usb/gadget/udc/udc-xilinx.c

index f8bf290f189444c5544f43d7a047981beab5dbc2..588e2531b8b81e05365f0d85fabd1e90452540a4 100644 (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);