From: Peter Chen Date: Tue, 14 Oct 2014 07:56:12 +0000 (+0800) Subject: usb: phy: phy-rcar-usb: delete unnecessary 'out of memory' messages X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=87fb3dec36bc1823b810107b69435dc66f763543;p=openwrt%2Fstaging%2Fblogic.git usb: phy: phy-rcar-usb: delete unnecessary 'out of memory' messages The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/phy/phy-rcar-usb.c b/drivers/usb/phy/phy-rcar-usb.c index 33265a5b2cdf..487959620141 100644 --- a/drivers/usb/phy/phy-rcar-usb.c +++ b/drivers/usb/phy/phy-rcar-usb.c @@ -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;