aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/phy
diff options
context:
space:
mode:
authorWan Jiabing <wanjiabing@vivo.com>2022-01-07 10:50:50 +0800
committerVinod Koul <vkoul@kernel.org>2022-01-27 12:14:34 +0530
commit46e994717807f4b935c44d81dde9dd8bcd9a4f5d (patch)
tree3aae91a1d16d96696302c471f5976c2b57804bae /drivers/phy
parentphy: stm32: fix a refcount leak in stm32_usbphyc_pll_enable() (diff)
downloadwireguard-linux-46e994717807f4b935c44d81dde9dd8bcd9a4f5d.tar.xz
wireguard-linux-46e994717807f4b935c44d81dde9dd8bcd9a4f5d.zip
phy: phy-mtk-tphy: Fix duplicated argument in phy-mtk-tphy
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 <wanjiabing@vivo.com> Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/20220107025050.787720-1-wanjiabing@vivo.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/mediatek/phy-mtk-tphy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/mediatek/phy-mtk-tphy.c b/drivers/phy/mediatek/phy-mtk-tphy.c
index 6d307102f4f6..8ee7682b8e93 100644
--- a/drivers/phy/mediatek/phy-mtk-tphy.c
+++ b/drivers/phy/mediatek/phy-mtk-tphy.c
@@ -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;