projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fee03ef
)
ALSA: azt3328: Assign boolean values to a bool variable
author
Jiapeng Chong
<jiapeng.chong@linux.alibaba.com>
Sun, 7 Feb 2021 07:02:41 +0000
(15:02 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 7 Feb 2021 08:49:04 +0000
(09:49 +0100)
Fix the following coccicheck warnings:
./sound/pci/azt3328.c:2451:2-16: WARNING: Assignment of 0/1 to bool
variable.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link:
https://lore.kernel.org/r/1612681361-63404-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/azt3328.c
patch
|
blob
|
history
diff --git
a/sound/pci/azt3328.c
b/sound/pci/azt3328.c
index
e3ea72a
..
2ac594d
100644
(file)
--- a/
sound/pci/azt3328.c
+++ b/
sound/pci/azt3328.c
@@
-2447,7
+2447,7
@@
snd_azf3328_create(struct snd_card *card,
/* shutdown codecs to reduce power / noise */
/* have ...ctrl_codec_activity() act properly */
- codec->running =
1
;
+ codec->running =
true
;
snd_azf3328_ctrl_codec_activity(chip, codec_type, 0);
spin_lock_irq(codec->lock);