summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2017-12-21 11:21:33 +0800
committerMark Brown <broonie@kernel.org>2017-12-21 11:13:26 +0000
commit790dde243f7dd5b8e576686eba0b891470b09f57 (patch)
tree354940c1667a37303067ab1d3831dfe4cf30cf61
parent2f8aab3d29fda158fa49ecae94b3b3a4b494909d (diff)
downloadlwn-790dde243f7dd5b8e576686eba0b891470b09f57.tar.gz
lwn-790dde243f7dd5b8e576686eba0b891470b09f57.zip
ASoC: rl6231: remove never matched if condition
(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>
-rw-r--r--sound/soc/codecs/rl6231.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/rl6231.c b/sound/soc/codecs/rl6231.c
index 33690e98e297..7ef3b5476bcc 100644
--- a/sound/soc/codecs/rl6231.c
+++ b/sound/soc/codecs/rl6231.c
@@ -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;