Commit 60a21053 authored by Roel Kluin's avatar Roel Kluin Committed by james toy

The wrong test was used acpi_status status is unsigned.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarJonathan Woithe <jwoithe@physics.adelaide.edu.au>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 4f6fa42c
...@@ -376,7 +376,7 @@ static int get_lcd_level(void) ...@@ -376,7 +376,7 @@ static int get_lcd_level(void)
status = status =
acpi_evaluate_integer(fujitsu->acpi_handle, "GBLL", NULL, &state); acpi_evaluate_integer(fujitsu->acpi_handle, "GBLL", NULL, &state);
if (status < 0) if (ACPI_FAILURE(status))
return status; return status;
fujitsu->brightness_level = state & 0x0fffffff; fujitsu->brightness_level = state & 0x0fffffff;
...@@ -398,7 +398,7 @@ static int get_max_brightness(void) ...@@ -398,7 +398,7 @@ static int get_max_brightness(void)
status = status =
acpi_evaluate_integer(fujitsu->acpi_handle, "RBLL", NULL, &state); acpi_evaluate_integer(fujitsu->acpi_handle, "RBLL", NULL, &state);
if (status < 0) if (ACPI_FAILURE(status))
return status; return status;
fujitsu->max_brightness = state; fujitsu->max_brightness = state;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment