Przeglądaj źródła

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>
Gustavo A. R. Silva 7 lat temu
rodzic
commit
97e45dd6e8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/acpi/acpi_video.c

+ 1 - 1
drivers/acpi/acpi_video.c

@@ -53,7 +53,7 @@ MODULE_AUTHOR("Bruno Ducrot");
 MODULE_DESCRIPTION("ACPI Video Driver");
 MODULE_DESCRIPTION("ACPI Video Driver");
 MODULE_LICENSE("GPL");
 MODULE_LICENSE("GPL");
 
 
-static bool brightness_switch_enabled = 1;
+static bool brightness_switch_enabled = true;
 module_param(brightness_switch_enabled, bool, 0644);
 module_param(brightness_switch_enabled, bool, 0644);
 
 
 /*
 /*