|
@@ -324,9 +324,6 @@ static int set_lcd_level(int level)
|
|
if (level < 0 || level >= fujitsu->max_brightness)
|
|
if (level < 0 || level >= fujitsu->max_brightness)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!fujitsu)
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
status = acpi_get_handle(fujitsu->acpi_handle, "SBLL", &handle);
|
|
status = acpi_get_handle(fujitsu->acpi_handle, "SBLL", &handle);
|
|
if (ACPI_FAILURE(status)) {
|
|
if (ACPI_FAILURE(status)) {
|
|
vdbg_printk(FUJLAPTOP_DBG_ERROR, "SBLL not present\n");
|
|
vdbg_printk(FUJLAPTOP_DBG_ERROR, "SBLL not present\n");
|
|
@@ -355,9 +352,6 @@ static int set_lcd_level_alt(int level)
|
|
if (level < 0 || level >= fujitsu->max_brightness)
|
|
if (level < 0 || level >= fujitsu->max_brightness)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!fujitsu)
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
status = acpi_get_handle(fujitsu->acpi_handle, "SBL2", &handle);
|
|
status = acpi_get_handle(fujitsu->acpi_handle, "SBL2", &handle);
|
|
if (ACPI_FAILURE(status)) {
|
|
if (ACPI_FAILURE(status)) {
|
|
vdbg_printk(FUJLAPTOP_DBG_ERROR, "SBL2 not present\n");
|
|
vdbg_printk(FUJLAPTOP_DBG_ERROR, "SBL2 not present\n");
|