Skip to content

Commit

Permalink
ASoC: ti: remove comparison to bool in omap_mcbsp_dai_set_dai_fmt()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Yan authored and Mark Brown committed Apr 27, 2020
1 parent e66f385 commit 1597bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/ti/omap-mcbsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1597bfb

Please sign in to comment.