]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: phy: phy-rcar-gen2-usb: delete unnecessary 'out of memory' messages
authorPeter Chen <peter.chen@freescale.com>
Tue, 14 Oct 2014 07:56:15 +0000 (15:56 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:05 +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-gen2-usb.c

index 388d89f6b14117f82d5324976211bda5edec4130..f83808413ba2296ccda2587bf719cf6ce0219dd5 100644 (file)
@@ -195,10 +195,8 @@ static int rcar_gen2_usb_phy_probe(struct platform_device *pdev)
                return PTR_ERR(base);
 
        priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
-       if (!priv) {
-               dev_err(dev, "Memory allocation failed\n");
+       if (!priv)
                return -ENOMEM;
-       }
 
        spin_lock_init(&priv->lock);
        priv->clk = clk;