ASoC: rl6231: remove never matched if condition
authorBard Liao <bardliao@realtek.com>
Thu, 21 Dec 2017 03:21:33 +0000 (11:21 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 21 Dec 2017 11:13:26 +0000 (11:13 +0000)
(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>
sound/soc/codecs/rl6231.c

index 33690e98e29723a3833bc7cc0245440a1ff33c19..7ef3b5476bcc2ecc3f291d151e99ce534230183e 100644 (file)
@@ -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;