alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ALSA: pci: Assign boolean values to a bool variable
@ 2021-02-07  7:02 Jiapeng Chong
  2021-02-07  8:49 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2021-02-07  7:02 UTC (permalink / raw)
  To: perex; +Cc: Jiapeng Chong, alsa-devel, tiwai, linux-kernel

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>
---
 sound/pci/azt3328.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c
index 77c7030..37f8fc4 100644
--- a/sound/pci/azt3328.c
+++ b/sound/pci/azt3328.c
@@ -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);
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ALSA: pci: Assign boolean values to a bool variable
  2021-02-07  7:02 [PATCH] ALSA: pci: Assign boolean values to a bool variable Jiapeng Chong
@ 2021-02-07  8:49 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2021-02-07  8:49 UTC (permalink / raw)
  To: Jiapeng Chong; +Cc: linux-kernel, alsa-devel, tiwai

On Sun, 07 Feb 2021 08:02:41 +0100,
Jiapeng Chong wrote:
> 
> 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>

Thanks, applied.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-11  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07  7:02 [PATCH] ALSA: pci: Assign boolean values to a bool variable Jiapeng Chong
2021-02-07  8:49 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).