提交 ea7e394d 编写于 作者: S Shravya Kumbham 提交者: Michal Simek

phy: zynqmp: Typecast with enum to fix the coverity warning

Typecast the i variable with (enum pll_frequencies)
in xpsgtr_get_ssc function to fix the coverity warning.

Addresses-Coverity: Event mixed_enum_type.
Signed-off-by: NShravya Kumbham <shravya.kumbham@xilinx.com>
上级 e08ec545
......@@ -473,7 +473,7 @@ static int xpsgtr_get_ssc(struct xpsgtr_phy *gtr_phy)
*/
for (i = 0 ; i < ARRAY_SIZE(ssc_lookup); i++) {
if (gtr_phy->refclk_rate == ssc_lookup[i].refclk_rate) {
gtr_phy->ref_clk = i;
gtr_phy->ref_clk = (enum pll_frequencies)i;
return 0;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册