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 2235b8808700be3ac5f0c5821b95fe213642e7db..485c8c2bddc1e362f22994f8422a5a00378f0b6e 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;