diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 19:39:05 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-08-29 10:47:56 +0300 |
commit | c4d6618e882c64ed43a8d5bd58f9cd6b4810cef1 (patch) | |
tree | 4d8502c6aa6197c192131832c3250d83f1173180 /drivers | |
parent | 1a7c1d58c60cbd3a7b41e894108cf4c401fa7b33 (diff) | |
download | linux-c4d6618e882c64ed43a8d5bd58f9cd6b4810cef1.tar.gz linux-c4d6618e882c64ed43a8d5bd58f9cd6b4810cef1.tar.bz2 linux-c4d6618e882c64ed43a8d5bd58f9cd6b4810cef1.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/udc/udc-xilinx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c index f8bf290f1894..588e2531b8b8 100644 --- a/drivers/usb/gadget/udc/udc-xilinx.c +++ b/drivers/usb/gadget/udc/udc-xilinx.c @@ -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); |