aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorJiapeng Zhong <abaci-bugfix@linux.alibaba.com>2021-01-25 15:17:27 +0800
committerTakashi Iwai <tiwai@suse.de>2021-01-25 08:57:12 +0100
commit62c2b4be0d858bb4d381868459fb8f82c3b58a21 (patch)
treee547f32bc81f1cd2cea526ef7b9be771f01eafaa /sound/pci/hda/hda_intel.c
parentALSA: hda: boolean values to a bool variable (diff)
downloadlinux-dev-62c2b4be0d858bb4d381868459fb8f82c3b58a21.tar.xz
linux-dev-62c2b4be0d858bb4d381868459fb8f82c3b58a21.zip
ALSA: hda: Assign boolean values to a bool variable
Fix the following coccicheck warnings: ./sound/pci/hda/hda_intel.c:2309:3-23: 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/1611559047-106928-1-git-send-email-abaci-bugfix@linux.alibaba.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 7f0000e2c953..6c439f377a7e 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2300,7 +2300,7 @@ static int azx_probe_continue(struct azx *chip)
/* HSW/BDW controllers need this power */
if (CONTROLLER_IN_GPU(pci))
- hda->need_i915_power = 1;
+ hda->need_i915_power = true;
}
/* Request display power well for the HDA controller or codec. For