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

index 7d80c54f0ac66924c2d228944c1fcbf23f45eb5e..c9517d8bda8d53d9202c797cdea6ea29eec9f3e1 100644 (file)
@@ -686,10 +686,8 @@ static int mv_otg_probe(struct platform_device *pdev)
        }
 
        mvotg = devm_kzalloc(&pdev->dev, sizeof(*mvotg), GFP_KERNEL);
-       if (!mvotg) {
-               dev_err(&pdev->dev, "failed to allocate memory!\n");
+       if (!mvotg)
                return -ENOMEM;
-       }
 
        otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
        if (!otg)