All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sound/pci/hda: boolean values to a bool variable
@ 2021-01-18  8:27 ` Jiapeng Zhong
  0 siblings, 0 replies; 4+ messages in thread
From: Jiapeng Zhong @ 2021-01-18  8:27 UTC (permalink / raw)
  To: perex
  Cc: tiwai, bo.liu, pegro, gustavoars, alsa-devel, linux-kernel,
	Jiapeng Zhong

Fix the following coccicheck warnings:

./sound/pci/hda/patch_conexant.c:570:2-20: WARNING:
Assignment of 0/1 to bool variable.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
---
 sound/pci/hda/patch_conexant.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index d49cc44..f2aa226 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -567,7 +567,7 @@ static void cxt_fixup_mute_led_eapd(struct hda_codec *codec,
 
 	if (action == HDA_FIXUP_ACT_PRE_PROBE) {
 		spec->mute_led_eapd = 0x1b;
-		spec->dynamic_eapd = 1;
+		spec->dynamic_eapd = true;
 		snd_hda_gen_add_mute_led_cdev(codec, cx_auto_vmaster_mute_led);
 	}
 }
-- 
1.8.3.1


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

* [PATCH] sound/pci/hda: boolean values to a bool variable
@ 2021-01-18  8:27 ` Jiapeng Zhong
  0 siblings, 0 replies; 4+ messages in thread
From: Jiapeng Zhong @ 2021-01-18  8:27 UTC (permalink / raw)
  To: perex
  Cc: alsa-devel, tiwai, pegro, linux-kernel, gustavoars, bo.liu,
	Jiapeng Zhong

Fix the following coccicheck warnings:

./sound/pci/hda/patch_conexant.c:570:2-20: WARNING:
Assignment of 0/1 to bool variable.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
---
 sound/pci/hda/patch_conexant.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index d49cc44..f2aa226 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -567,7 +567,7 @@ static void cxt_fixup_mute_led_eapd(struct hda_codec *codec,
 
 	if (action == HDA_FIXUP_ACT_PRE_PROBE) {
 		spec->mute_led_eapd = 0x1b;
-		spec->dynamic_eapd = 1;
+		spec->dynamic_eapd = true;
 		snd_hda_gen_add_mute_led_cdev(codec, cx_auto_vmaster_mute_led);
 	}
 }
-- 
1.8.3.1


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

* Re: [PATCH] sound/pci/hda: boolean values to a bool variable
  2021-01-18  8:27 ` Jiapeng Zhong
@ 2021-01-24  8:13   ` Takashi Iwai
  -1 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2021-01-24  8:13 UTC (permalink / raw)
  To: Jiapeng Zhong
  Cc: perex, tiwai, bo.liu, pegro, gustavoars, alsa-devel, linux-kernel

On Mon, 18 Jan 2021 09:27:49 +0100,
Jiapeng Zhong wrote:
> 
> Fix the following coccicheck warnings:
> 
> ./sound/pci/hda/patch_conexant.c:570:2-20: WARNING:
> Assignment of 0/1 to bool variable.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>

Applied, thanks.


Takashi

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

* Re: [PATCH] sound/pci/hda: boolean values to a bool variable
@ 2021-01-24  8:13   ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2021-01-24  8:13 UTC (permalink / raw)
  To: Jiapeng Zhong; +Cc: alsa-devel, linux-kernel, tiwai, gustavoars, pegro, bo.liu

On Mon, 18 Jan 2021 09:27:49 +0100,
Jiapeng Zhong wrote:
> 
> Fix the following coccicheck warnings:
> 
> ./sound/pci/hda/patch_conexant.c:570:2-20: WARNING:
> Assignment of 0/1 to bool variable.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>

Applied, thanks.


Takashi

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

end of thread, other threads:[~2021-01-24  8:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18  8:27 [PATCH] sound/pci/hda: boolean values to a bool variable Jiapeng Zhong
2021-01-18  8:27 ` Jiapeng Zhong
2021-01-24  8:13 ` Takashi Iwai
2021-01-24  8:13   ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.