diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:37 -0400 |
commit | e2088ec002ce36ee36a0b6fbe2d6299e1c1c8325 (patch) | |
tree | 651e30375a6bd5f63e2db877a56a06db64fedc1c /drivers/usb | |
parent | d9116ca87e8dfee907106dbc912a926c3b67c52c (diff) |
usb: gadget: udc: goku_udc: 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/goku_udc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index d2205d9e0c8b..1400415fe67a 100644 --- a/drivers/usb/gadget/udc/goku_udc.c +++ b/drivers/usb/gadget/udc/goku_udc.c | |||
@@ -1767,8 +1767,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1767 | 1767 | ||
1768 | /* alloc, and start init */ | 1768 | /* alloc, and start init */ |
1769 | dev = kzalloc (sizeof *dev, GFP_KERNEL); | 1769 | dev = kzalloc (sizeof *dev, GFP_KERNEL); |
1770 | if (dev == NULL){ | 1770 | if (!dev) { |
1771 | pr_debug("enomem %s\n", pci_name(pdev)); | ||
1772 | retval = -ENOMEM; | 1771 | retval = -ENOMEM; |
1773 | goto err; | 1772 | goto err; |
1774 | } | 1773 | } |