usb: gadget: bcm63xx_udc: delete unnecessary 'out of memory' messages
authorPeter Chen <peter.chen@freescale.com>
Tue, 14 Oct 2014 07:55:59 +0000 (15:55 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:01 +0000 (10:01 -0600)
The memory subsystem has already had similar message for it.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/bcm63xx_udc.c

index 2235b88..485c8c2 100644 (file)
@@ -2324,10 +2324,8 @@ static int bcm63xx_udc_probe(struct platform_device *pdev)
        int rc = -ENOMEM, i, irq;
 
        udc = devm_kzalloc(dev, sizeof(*udc), GFP_KERNEL);
-       if (!udc) {
-               dev_err(dev, "cannot allocate memory\n");
+       if (!udc)
                return -ENOMEM;
-       }
 
        platform_set_drvdata(pdev, udc);
        udc->dev = dev;