projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
577dc32
)
ASoC: nau8824: fix boolean assignment
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Sat, 5 Jan 2019 02:02:43 +0000
(20:02 -0600)
committer
Mark Brown
<broonie@kernel.org>
Mon, 7 Jan 2019 16:52:56 +0000
(16:52 +0000)
Reported by Coccinelle:
nau8824.c:810:6-12: ERROR: Assignment of bool to non-0/1 constant
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8824.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/nau8824.c
b/sound/soc/codecs/nau8824.c
index 468d5143e2c4f700e2f6e7b519e8ad485fb7aa7d..87ed3dc496dc2de72043c8dbd5c66cbed7c0f923 100644
(file)
--- a/
sound/soc/codecs/nau8824.c
+++ b/
sound/soc/codecs/nau8824.c
@@
-807,7
+807,7
@@
static const struct snd_soc_dapm_route nau8824_dapm_routes[] = {
static bool nau8824_is_jack_inserted(struct nau8824 *nau8824)
{
struct snd_soc_jack *jack = nau8824->jack;
- bool insert =
FALSE
;
+ bool insert =
false
;
if (nau8824->irq && jack)
insert = jack->status & SND_JACK_HEADPHONE;