未验证 提交 790dde24 编写于 作者: B Bard Liao 提交者: Mark Brown

ASoC: rl6231: remove never matched if condition

(in_t < 0) will never be true since in_t is unsigned.
Signed-off-by: NBard Liao <bardliao@realtek.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 2f8aab3d
...@@ -178,8 +178,6 @@ int rl6231_pll_calc(const unsigned int freq_in, ...@@ -178,8 +178,6 @@ int rl6231_pll_calc(const unsigned int freq_in,
for (n_t = 0; n_t <= max_n; n_t++) { for (n_t = 0; n_t <= max_n; n_t++) {
in_t = f_in * (n_t + 2); in_t = f_in * (n_t + 2);
pll_out = f_out * (k_t + 2); pll_out = f_out * (k_t + 2);
if (in_t < 0)
continue;
if (in_t == pll_out) { if (in_t == pll_out) {
bypass = true; bypass = true;
n = n_t; n = n_t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册