Skip to contentSkip to conversation

ACPI / video: Use true for boolean value

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Jan 23, 2018 – Feb 8, 2018 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/acpi/acpi_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_video.c +1 -1
index f53ccc6..76fb969 100644
@@ -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);
 
 /*
Signature · 1 line
2.7.4
#1 lore raw
Quoted 15 lines · CET Gustavo A. R. Silva

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

This issue was detected with the help of Coccinelle.

---
 drivers/acpi/acpi_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_video.c +0 -0
index f53ccc6..76fb969 100644

drivers/acpi/acpi_video.c MODULE_AUTHOR("Bruno Ducrot"); · line 59

Quoted 8 lines
drivers/acpi/acpi_video.c +1 -1
@@ -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);
 
 /*

Applied, thanks!