ALSA: hda: boolean values to a bool variable
authorJiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Mon, 18 Jan 2021 08:27:49 +0000 (16:27 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sun, 24 Jan 2021 08:12:31 +0000 (09:12 +0100)
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>
Link: https://lore.kernel.org/r/1610958469-65856-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_conexant.c

index d49cc4409d59c091d643f9082116c1aa583eb252..f2aa226d1373d1c680ae99662f8047729dc0d71b 100644 (file)
@@ -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);
        }
 }