diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:37 -0400 |
commit | c86af711a6945ac00d005c66b4f29faba82bafe9 (patch) | |
tree | c94752c3e96c92408369dbac578415f31d0eed03 /drivers/usb | |
parent | e2088ec002ce36ee36a0b6fbe2d6299e1c1c8325 (diff) |
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>
Diffstat (limited to 'drivers/usb')
-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, | |||
973 | 973 | ||
974 | udc = ep->udc; | 974 | udc = ep->udc; |
975 | req = kzalloc(sizeof(*req), gfp_flags); | 975 | req = kzalloc(sizeof(*req), gfp_flags); |
976 | if (!req) { | 976 | if (!req) |
977 | dev_err(udc->dev, "%s:not enough memory", __func__); | ||
978 | return NULL; | 977 | return NULL; |
979 | } | ||
980 | 978 | ||
981 | req->ep = ep; | 979 | req->ep = ep; |
982 | INIT_LIST_HEAD(&req->queue); | 980 | INIT_LIST_HEAD(&req->queue); |