From: Peter Chen <peter.c...@freescale.com>

The memory subsystem has already had similar message for it.

Signed-off-by: Peter Chen <peter.c...@freescale.com>
Signed-off-by: Felipe Balbi <ba...@ti.com>
---
 drivers/usb/phy/phy-am335x-control.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/usb/phy/phy-am335x-control.c 
b/drivers/usb/phy/phy-am335x-control.c
index 35b6083..2e923c5 100644
--- a/drivers/usb/phy/phy-am335x-control.c
+++ b/drivers/usb/phy/phy-am335x-control.c
@@ -147,10 +147,8 @@ static int am335x_control_usb_probe(struct platform_device 
*pdev)
        phy_ctrl = of_id->data;
 
        ctrl_usb = devm_kzalloc(&pdev->dev, sizeof(*ctrl_usb), GFP_KERNEL);
-       if (!ctrl_usb) {
-               dev_err(&pdev->dev, "unable to alloc memory for control usb\n");
+       if (!ctrl_usb)
                return -ENOMEM;
-       }
 
        ctrl_usb->dev = &pdev->dev;
 
-- 
2.1.0.GIT

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to