usb: gadget: udc: goku_udc: don't print on ENOMEM
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 25 Aug 2016 17:39:04 +0000 (19:39 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 29 Aug 2016 07:47:52 +0000 (10:47 +0300)
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>
drivers/usb/gadget/udc/goku_udc.c

index d2205d9e0c8b43265901352548342b0e8646ca97..1400415fe67ac863a5fafe5f4395e92c5298c710 100644 (file)
@@ -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;
        }
This page took 0.025465 seconds and 5 git commands to generate.