]> Git Repo - linux.git/commitdiff
phy: phy-mtk-tphy: Fix duplicated argument in phy-mtk-tphy
authorWan Jiabing <[email protected]>
Fri, 7 Jan 2022 02:50:50 +0000 (10:50 +0800)
committerVinod Koul <[email protected]>
Thu, 27 Jan 2022 06:44:34 +0000 (12:14 +0530)
Fix following coccicheck warning:
./drivers/phy/mediatek/phy-mtk-tphy.c:994:6-29: duplicated argument
to && or ||

The efuse_rx_imp is duplicate. Here should be efuse_tx_imp.

Signed-off-by: Wan Jiabing <[email protected]>
Acked-by: Chunfeng Yun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/phy/mediatek/phy-mtk-tphy.c

index 6d307102f4f6c17603cd9291654f1a06b37828a4..8ee7682b8e93eb86346d1e55e1f6963a5f8f77d0 100644 (file)
@@ -992,7 +992,7 @@ static int phy_efuse_get(struct mtk_tphy *tphy, struct mtk_phy_instance *instanc
                /* no efuse, ignore it */
                if (!instance->efuse_intr &&
                    !instance->efuse_rx_imp &&
-                   !instance->efuse_rx_imp) {
+                   !instance->efuse_tx_imp) {
                        dev_warn(dev, "no u3 intr efuse, but dts enable it\n");
                        instance->efuse_sw_en = 0;
                        break;
This page took 0.051637 seconds and 4 git commands to generate.