ACPI / video: Use true for boolean value
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.
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/acpi/acpi_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 );/*
Signature · 1 line
2.7.4
Rafael J. Wysocki
AppliedQuoted 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.
Signed-off-by Gustavo A. R. Silva <[email protected]>--- drivers/acpi/acpi_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/acpi_video.c +0
-0
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!