phy: rockchip-typec: remove unused dfp variable
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 3 Aug 2017 01:26:19 +0000 (09:26 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 22 Aug 2017 04:41:24 +0000 (10:11 +0530)
In order to silent the 'W=1' compile warning:

drivers/phy/rockchip/phy-rockchip-typec.c: In function 'tcphy_get_mode':
drivers/phy/rockchip/phy-rockchip-typec.c:625:7: warning: variable 'dfp'
set but not used [-Wunused-but-set-variable]

Cc: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/rockchip/phy-rockchip-typec.c

index 7cfb0f8995de8eb43b212c356765e2a3ba0e3a01..4d2c57f21d7682bb6b08f31a1dab0ba74ab0e4e2 100644 (file)
@@ -622,12 +622,11 @@ static int tcphy_get_mode(struct rockchip_typec_phy *tcphy)
        struct extcon_dev *edev = tcphy->extcon;
        union extcon_property_value property;
        unsigned int id;
-       bool dfp, ufp, dp;
+       bool ufp, dp;
        u8 mode;
        int ret;
 
        ufp = extcon_get_state(edev, EXTCON_USB);
-       dfp = extcon_get_state(edev, EXTCON_USB_HOST);
        dp = extcon_get_state(edev, EXTCON_DISP_DP);
 
        mode = MODE_DFP_USB;