* [PATCH] phy: mediatek: Remove unusued ret and check
@ 2023-05-05 0:19 Palmer Dabbelt
2023-05-05 9:26 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Palmer Dabbelt @ 2023-05-05 0:19 UTC (permalink / raw)
To: vkoul
Cc: chunkuang.hu, p.zabel, chunfeng.yun, kishon, matthias.bgg,
angelogioacchino.delregno, dri-devel, linux-mediatek,
linux-arm-kernel, linux-phy, linux-kernel, linux, Palmer Dabbelt
From: Palmer Dabbelt <palmer@rivosinc.com>
This trips up a maybe-uninitialized warning, but it's actually just not
used.
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
---
I just stumbled into this one when trying to test Linus' master. I'm
not sure it's a sane fix, but I'm not using the driver. No rush no my
end, I'll just keep the fix around in my local tree for now.
---
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c b/drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c
index abfc077fb0a8..3fc0913ec73b 100644
--- a/drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c
+++ b/drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c
@@ -213,7 +213,7 @@ static int mtk_hdmi_pll_calc(struct mtk_hdmi_phy *hdmi_phy, struct clk_hw *hw,
u64 tmds_clk, pixel_clk, da_hdmitx21_ref_ck, ns_hdmipll_ck, pcw;
u8 txpredivs[4] = { 2, 4, 6, 12 };
u32 fbkdiv_low;
- int i, ret;
+ int i;
pixel_clk = rate;
tmds_clk = pixel_clk;
@@ -295,8 +295,6 @@ static int mtk_hdmi_pll_calc(struct mtk_hdmi_phy *hdmi_phy, struct clk_hw *hw,
mtk_hdmi_pll_set_hw(hw, PLL_PREDIV, fbkdiv_high, fbkdiv_low,
PLL_FBKDIV_HS3, posdiv1, posdiv2, txprediv,
txposdiv, digital_div);
- if (ret)
- return -EINVAL;
return 0;
}
--
2.40.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] phy: mediatek: Remove unusued ret and check
2023-05-05 0:19 [PATCH] phy: mediatek: Remove unusued ret and check Palmer Dabbelt
@ 2023-05-05 9:26 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2023-05-05 9:26 UTC (permalink / raw)
To: Palmer Dabbelt
Cc: chunkuang.hu, p.zabel, chunfeng.yun, kishon, matthias.bgg,
angelogioacchino.delregno, dri-devel, linux-mediatek,
linux-arm-kernel, linux-phy, linux-kernel, linux
On 04-05-23, 17:19, Palmer Dabbelt wrote:
> From: Palmer Dabbelt <palmer@rivosinc.com>
>
> This trips up a maybe-uninitialized warning, but it's actually just not
> used.
Thanks but this is already fixed by 714dd3c29a22 ("phy: mediatek: hdmi:
mt8195: fix uninitialized variable usage in pll_calc") in phy/next and
should be in Linus's tree shortly
--
~Vinod
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-05 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-05 0:19 [PATCH] phy: mediatek: Remove unusued ret and check Palmer Dabbelt
2023-05-05 9:26 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox