forked from Minki/linux
ASoC: fsl: fsl_esai: clarify expression
cppcheck warning: sound/soc/fsl/fsl_esai.c:307:16: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] clk_id % 2 ? "extal" : "fsys"); ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20210219232937.6440-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
062b852168
commit
8f6fef01a5
@ -304,7 +304,7 @@ static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
|
||||
|
||||
if (IS_ERR(clksrc)) {
|
||||
dev_err(dai->dev, "no assigned %s clock\n",
|
||||
clk_id % 2 ? "extal" : "fsys");
|
||||
(clk_id % 2) ? "extal" : "fsys");
|
||||
return PTR_ERR(clksrc);
|
||||
}
|
||||
clk_rate = clk_get_rate(clksrc);
|
||||
|
Loading…
Reference in New Issue
Block a user