projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
156ec47
)
platform/x86: intel_pmc_core: Assign boolean values to a bool variable
author
Kaixu Xia
<kaixuxia@tencent.com>
Sat, 7 Nov 2020 12:53:41 +0000
(20:53 +0800)
committer
Hans de Goede
<hdegoede@redhat.com>
Mon, 9 Nov 2020 14:02:40 +0000
(15:02 +0100)
Fix the following coccinelle warnings:
./drivers/platform/x86/intel_pmc_core.c:932:1-16: WARNING: Assignment of 0/1 to bool variable
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link:
https://lore.kernel.org/r/1604753621-7387-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_pmc_core.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/intel_pmc_core.c
b/drivers/platform/x86/intel_pmc_core.c
index 3e5fe66333f137e4fd90d6a8811677f1dfdf0171..ee2f757515b0a04b9fe0ba58df118e7ec5296500 100644
(file)
--- a/
drivers/platform/x86/intel_pmc_core.c
+++ b/
drivers/platform/x86/intel_pmc_core.c
@@
-929,7
+929,7
@@
static void pmc_core_slps0_dbg_latch(struct pmc_dev *pmcdev, bool reset)
fd |= CNP_PMC_LATCH_SLPS0_EVENTS;
pmc_core_reg_write(pmcdev, map->slps0_dbg_offset, fd);
- slps0_dbg_latch =
0
;
+ slps0_dbg_latch =
false
;
out_unlock:
mutex_unlock(&pmcdev->lock);