summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 17:39:04 (GMT)
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-29 07:47:52 (GMT)
commit1a7c1d58c60cbd3a7b41e894108cf4c401fa7b33 (patch)
treefaad4a7442322cd764f990ad9b29fd942035cc80
parentb8246caf895ed99c365585c11f5b5627653b2756 (diff)
downloadlinux-1a7c1d58c60cbd3a7b41e894108cf4c401fa7b33.tar.xz
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: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r--drivers/usb/gadget/udc/goku_udc.c3
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 d2205d9..1400415 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)
/* alloc, and start init */
dev = kzalloc (sizeof *dev, GFP_KERNEL);
- if (dev == NULL){
- pr_debug("enomem %s\n", pci_name(pdev));
+ if (!dev) {
retval = -ENOMEM;
goto err;
}