aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/ti/omap-mcbsp.c
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-26 17:42:38 +0800
committerMark Brown <broonie@kernel.org>2020-04-27 14:08:42 +0100
commit1597bfbfdb3c6e97ad0f63abedc2a26d6c1850c7 (patch)
treeee705f189c31a885535eebd15c7bb1b40e357d3c /sound/soc/ti/omap-mcbsp.c
parentASoC: mxs-saif: Avoid unnecessary check (diff)
downloadlinux-dev-1597bfbfdb3c6e97ad0f63abedc2a26d6c1850c7.tar.xz
linux-dev-1597bfbfdb3c6e97ad0f63abedc2a26d6c1850c7.zip
ASoC: ti: remove comparison to bool in omap_mcbsp_dai_set_dai_fmt()
Fix the following coccicheck warning: sound/soc/ti/omap-mcbsp.c:1188:5-11: WARNING: Comparison to bool Signed-off-by: Jason Yan <yanaijie@huawei.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Link: https://lore.kernel.org/r/20200426094238.23914-1-yanaijie@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ti/omap-mcbsp.c')
-rw-r--r--sound/soc/ti/omap-mcbsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/ti/omap-mcbsp.c b/sound/soc/ti/omap-mcbsp.c
index 3d41ca2238d4..0348963f4df7 100644
--- a/sound/soc/ti/omap-mcbsp.c
+++ b/sound/soc/ti/omap-mcbsp.c
@@ -1185,7 +1185,7 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
default:
return -EINVAL;
}
- if (inv_fs == true)
+ if (inv_fs)
regs->pcr0 ^= FSXP | FSRP;
return 0;