From: Gustavo A. R. Silva <gustavo@embeddedor.com>
Date: Tue, 23 Jan 2018 15:59:20 +0000 (-0600)
Subject: ACPI / video: Use true for boolean value
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=97e45dd6e82a556e64a81824bb87c2b9bf98ddd3;p=linux.git

ACPI / video: Use true for boolean value

Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---

diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
index f53ccc6802381..76fb96966f7b1 100644
--- a/drivers/acpi/acpi_video.c
+++ b/drivers/acpi/acpi_video.c
@@ -53,7 +53,7 @@ MODULE_AUTHOR("Bruno Ducrot");
 MODULE_DESCRIPTION("ACPI Video Driver");
 MODULE_LICENSE("GPL");
 
-static bool brightness_switch_enabled = 1;
+static bool brightness_switch_enabled = true;
 module_param(brightness_switch_enabled, bool, 0644);
 
 /*