OSDN Git Service

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 8e87f54..bc42d6a 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;