projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b564fdb
)
ASoC: wm8996: clarify expression
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Thu, 11 Mar 2021 00:43:30 +0000
(18:43 -0600)
committer
Mark Brown
<broonie@kernel.org>
Thu, 11 Mar 2021 13:24:17 +0000
(13:24 +0000)
cppcheck warning:
sound/soc/codecs/wm8996.c:2109:23: style: Clarify calculation
precedence for '/' and '?'. [clarifyCalculation]
timeout = timeout/2 ? : 1;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20210311004332.120901-9-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8996.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8996.c
b/sound/soc/codecs/wm8996.c
index d303ef7571e9d38532828818f6aed5b58bbd6a04..197ae7d84a4993c00c170874785a196c74e8b9b5 100644
(file)
--- a/
sound/soc/codecs/wm8996.c
+++ b/
sound/soc/codecs/wm8996.c
@@
-2106,7
+2106,7
@@
static int wm8996_set_fll(struct snd_soc_component *component, int fll_id, int s
timeout *= 10;
else
/* ensure timeout of atleast 1 jiffies */
- timeout =
timeout/2
? : 1;
+ timeout =
(timeout/2)
? : 1;
for (retry = 0; retry < 10; retry++) {
time_left = wait_for_completion_timeout(&wm8996->fll_lock,