summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-10-14 15:56:15 +0800
committerFelipe Balbi <balbi@ti.com>2014-11-03 10:01:05 -0600
commit3f8acf35b019aa996cc16b3658b72ad361cc7931 (patch)
treeef2e52c00cb0acdd6f1dd8250574b08048cb1ec8
parent9aabd03272c8dc0b91341da865ae742fe0ecb2c3 (diff)
downloadop-kernel-dev-3f8acf35b019aa996cc16b3658b72ad361cc7931.zip
op-kernel-dev-3f8acf35b019aa996cc16b3658b72ad361cc7931.tar.gz
usb: phy: phy-rcar-gen2-usb: delete unnecessary 'out of memory' messages
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>
-rw-r--r--drivers/usb/phy/phy-rcar-gen2-usb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/phy/phy-rcar-gen2-usb.c b/drivers/usb/phy/phy-rcar-gen2-usb.c
index 388d89f..f838084 100644
--- a/drivers/usb/phy/phy-rcar-gen2-usb.c
+++ b/drivers/usb/phy/phy-rcar-gen2-usb.c
@@ -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;
OpenPOWER on IntegriCloud