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

index 0e0c41587a08b77cea9e49178de1c420a67405dc..a55dadcd47f34fa84f9dd4284a80d659ad6b37bb 100644 (file)
@@ -390,10 +390,8 @@ static int mxs_phy_probe(struct platform_device *pdev)
        }
 
        mxs_phy = devm_kzalloc(&pdev->dev, sizeof(*mxs_phy), GFP_KERNEL);
-       if (!mxs_phy) {
-               dev_err(&pdev->dev, "Failed to allocate USB PHY structure!\n");
+       if (!mxs_phy)
                return -ENOMEM;
-       }
 
        /* Some SoCs don't have anatop registers */
        if (of_get_property(np, "fsl,anatop", NULL)) {