ALSA: pci: Assign boolean values to a bool variable
PATCH 1/1 ALSA: pci: Assign boolean values to a bool variable
Fix the following coccicheck warnings:
./sound/pci/azt3328.c:2451:2-16: WARNING: Assignment of 0/1 to bool variable.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- sound/pci/azt3328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/azt3328.c +1 -1
@@ -2448,7 +2448,7 @@ static void snd_azf3328_mixer_reg_decode(struct azf3328_mixer_reg *r, unsigned l/* 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);
Signature · 1 line
1.8.3.1
Takashi Iwai
AppliedQuoted 8 lines · Jiapeng Chong
Fix the following coccicheck warnings:
./sound/pci/azt3328.c:2451:2-16: WARNING: Assignment of 0/1 to bool variable.
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Thanks, applied.
Takashi