Commit 1a7c1d58 authored by Wolfram Sang's avatar Wolfram Sang Committed by Felipe Balbi

usb: gadget: udc: goku_udc: 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 avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent b8246caf
...@@ -1767,8 +1767,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -1767,8 +1767,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)
/* alloc, and start init */ /* alloc, and start init */
dev = kzalloc (sizeof *dev, GFP_KERNEL); dev = kzalloc (sizeof *dev, GFP_KERNEL);
if (dev == NULL){ if (!dev) {
pr_debug("enomem %s\n", pci_name(pdev));
retval = -ENOMEM; retval = -ENOMEM;
goto err; goto err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment