Unbreak LINT by making sure that method is always defined.

Submitted by:	roam
Pointy hat to:	philip
This commit is contained in:
philip 2004-08-04 14:29:22 +00:00
parent 2915eae8fd
commit b673475384
2 changed files with 8 additions and 0 deletions

View File

@ -437,6 +437,10 @@ acpi_asus_led(struct acpi_asus_led *led, int state)
case ACPI_ASUS_LED_WLED:
method = sc->model->wled_set;
break;
default:
printf("acpi_asus_led: invalid LED type %d\n",
(int)led->type);
return;
}
acpi_SetInteger(sc->handle, method, state);

View File

@ -437,6 +437,10 @@ acpi_asus_led(struct acpi_asus_led *led, int state)
case ACPI_ASUS_LED_WLED:
method = sc->model->wled_set;
break;
default:
printf("acpi_asus_led: invalid LED type %d\n",
(int)led->type);
return;
}
acpi_SetInteger(sc->handle, method, state);