summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-22 15:18:05 +0800
committerMark Brown <broonie@kernel.org>2020-04-22 13:15:56 +0100
commit4aa86e05be84b0692846799fce16c233a170c559 (patch)
treef9dd341eae09173d2a7d87f59af65430fc56cf9d /include/sound
parentd8e25a10ef876bfb2e6ee611fbbb7f7c926a3309 (diff)
ASoC: soc-core: return true, false in snd_soc_volsw_is_stereo()
Fix the following coccicheck warning: include/sound/soc.h:1271:9-10: WARNING: return of 0/1 in function 'snd_soc_volsw_is_stereo' with return type bool Signed-off-by: Jason Yan <yanaijie@huawei.com> Link: https://lore.kernel.org/r/20200422071805.48793-1-yanaijie@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 8f542268a889..7411546dda9f 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1270,13 +1270,13 @@ static inline void *snd_soc_card_get_drvdata(struct snd_soc_card *card)
static inline bool snd_soc_volsw_is_stereo(struct soc_mixer_control *mc)
{
if (mc->reg == mc->rreg && mc->shift == mc->rshift)
- return 0;
+ return false;
/*
* mc->reg == mc->rreg && mc->shift != mc->rshift, or
* mc->reg != mc->rreg means that the control is
* stereo (bits in one register or in two registers)
*/
- return 1;
+ return true;
}
static inline unsigned int snd_soc_enum_val_to_item(struct soc_enum *e,