[PATCH] ACPI: fix the warning assignment of 0/1 to bool variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It fixes the warning as follows reported by coccicheck:
drivers/acpi/cppc_acpi.c:908:4-45: WARNING: Assignment of 0/1
to bool variable.

Signed-off-by: Tian Tao <tiantao6@xxxxxxxxxx>
---
 drivers/acpi/cppc_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c
index 3b25259..3afbd1e 100644
--- a/drivers/acpi/cppc_acpi.c
+++ b/drivers/acpi/cppc_acpi.c
@@ -905,7 +905,7 @@ void acpi_cppc_processor_exit(struct acpi_processor *pr)
 			pcc_data[pcc_ss_id]->refcount--;
 			if (!pcc_data[pcc_ss_id]->refcount) {
 				pcc_mbox_free_channel(pcc_data[pcc_ss_id]->pcc_channel);
-				pcc_data[pcc_ss_id]->pcc_channel_acquired = 0;
+				pcc_data[pcc_ss_id]->pcc_channel_acquired = false;
 				kfree(pcc_data[pcc_ss_id]);
 			}
 		}
-- 
2.7.4




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux