Skip to contentSkip to conversation

ASoC: rl6231: remove never matched if condition

PATCH In review Bard Liao 2 participants 2 messages Dec 21, 2017

Subsystems (2)
lore
Share & tools
lore

Bard Liao

author
#0 lore raw

PATCH 1/1 ASoC: rl6231: remove never matched if condition

(in_t < 0) will never be true since in_t is unsigned.

---
 sound/soc/codecs/rl6231.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/rl6231.c +0 -2
index 33690e9..7ef3b54 100644
@@ -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;
Signature · 1 line
2.7.4
maintainer
#1 lore raw

Applied "ASoC: rl6231: remove never matched if condition" to the asoc tree

The patch

ASoC: rl6231: remove never matched if condition

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 790dde243f7dd5b8e576686eba0b891470b09f57 Mon Sep 17 00:00:00 2001

From: Bard Liao <[email protected]>
Date: Thu, 21 Dec 2017 11:21:33 +0800
Subject: [PATCH] ASoC: rl6231: remove never matched if condition

(in_t < 0) will never be true since in_t is unsigned.

---
 sound/soc/codecs/rl6231.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/rl6231.c +0 -2
index 33690e98e297..7ef3b5476bcc 100644
@@ -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;
Signature · 1 line
2.15.1