Skip to content

Commit

Permalink
ASoC: rl6231: remove never matched if condition
Browse files Browse the repository at this point in the history
(in_t < 0) will never be true since in_t is unsigned.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Bard Liao authored and Mark Brown committed Dec 21, 2017
1 parent 2f8aab3 commit 790dde2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/rl6231.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ int rl6231_pll_calc(const unsigned int freq_in,
for (n_t = 0; n_t <= max_n; n_t++) {
in_t = f_in * (n_t + 2);
pll_out = f_out * (k_t + 2);
if (in_t < 0)
continue;
if (in_t == pll_out) {
bypass = true;
n = n_t;
Expand Down

0 comments on commit 790dde2

Please sign in to comment.