usb: renesas_usbhs: delete unnecessary 'out of memory' messages
authorPeter Chen <peter.chen@freescale.com>
Tue, 14 Oct 2014 07:56:19 +0000 (15:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Nov 2014 23:42:05 +0000 (15:42 -0800)
The memory subsystem has already had similar message for it.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/renesas_usbhs/common.c

index b3b6813..6dae115 100644 (file)
@@ -505,10 +505,8 @@ static int usbhs_probe(struct platform_device *pdev)
 
        /* usb private data */
        priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
-       if (!priv) {
-               dev_err(&pdev->dev, "Could not allocate priv\n");
+       if (!priv)
                return -ENOMEM;
-       }
 
        priv->base = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(priv->base))