phy: twl4030-usb: Remove redundant assignment for twl->linkstat
authorAxel Lin <axel.lin@ingics.com>
Sun, 1 Mar 2015 14:28:23 +0000 (22:28 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 13 Mar 2015 11:44:36 +0000 (17:14 +0530)
It's pointless to set twl->linkstat twice.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-twl4030-usb.c

index 8e87f54671f32de11915a7921824fc4a8929ab84..bc42d6a8939f4efd85fb1e10ea6d12faa1b76e97 100644 (file)
@@ -666,7 +666,6 @@ static int twl4030_usb_probe(struct platform_device *pdev)
        twl->dev                = &pdev->dev;
        twl->irq                = platform_get_irq(pdev, 0);
        twl->vbus_supplied      = false;
-       twl->linkstat           = -EINVAL;
        twl->linkstat           = OMAP_MUSB_UNKNOWN;
 
        twl->phy.dev            = twl->dev;