usb: phy: phy-tegra-usb: delete unnecessary 'out of memory' messages
authorPeter Chen <peter.chen@freescale.com>
Tue, 14 Oct 2014 07:56:13 +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-tegra-usb.c

index 886f1807a67bbdcb8fe5e17e91b45e382507db14..fa2bfa4ee34e1f4470db71506a5437d8831229b0 100644 (file)
@@ -880,11 +880,8 @@ static int utmi_phy_probe(struct tegra_usb_phy *tegra_phy,
 
        tegra_phy->config = devm_kzalloc(&pdev->dev, sizeof(*config),
                                         GFP_KERNEL);
-       if (!tegra_phy->config) {
-               dev_err(&pdev->dev,
-                       "unable to allocate memory for USB UTMIP config\n");
+       if (!tegra_phy->config)
                return -ENOMEM;
-       }
 
        config = tegra_phy->config;
 
@@ -979,10 +976,8 @@ static int tegra_usb_phy_probe(struct platform_device *pdev)
        int err;
 
        tegra_phy = devm_kzalloc(&pdev->dev, sizeof(*tegra_phy), GFP_KERNEL);
-       if (!tegra_phy) {
-               dev_err(&pdev->dev, "unable to allocate memory for USB2 PHY\n");
+       if (!tegra_phy)
                return -ENOMEM;
-       }
 
        match = of_match_device(tegra_usb_phy_id_table, &pdev->dev);
        if (!match) {