usb: phy: phy-rcar-usb: delete unnecessary 'out of memory' messages
authorPeter Chen <peter.chen@freescale.com>
Tue, 14 Oct 2014 07:56:12 +0000 (15:56 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:04 +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/phy/phy-rcar-usb.c

index 33265a5b2cdf8fdca0fc6ba0b7752a6a54ae9c4f..48795962014167135385393e7361eb47723b4918 100644 (file)
@@ -202,10 +202,8 @@ static int rcar_usb_phy_probe(struct platform_device *pdev)
        }
 
        priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
-       if (!priv) {
-               dev_err(dev, "priv data allocation error\n");
+       if (!priv)
                return -ENOMEM;
-       }
 
        priv->reg0              = reg0;
        priv->reg1              = reg1;