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)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:07 +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/renesas_usbhs/common.c

index b3b6813ab270c046f9cf70ab99aa11821e2a7b0b..6dae1151569bc5fd3c7287b6815df88faa43c42e 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))