From b2d488a77dc0b87f60438aeec34d08b4ec8c3d40 Mon Sep 17 00:00:00 2001 From: philip Date: Wed, 4 Aug 2004 14:29:22 +0000 Subject: [PATCH] Unbreak LINT by making sure that method is always defined. Submitted by: roam Pointy hat to: philip --- sys/dev/acpi_support/acpi_asus.c | 4 ++++ sys/i386/acpica/acpi_asus.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sys/dev/acpi_support/acpi_asus.c b/sys/dev/acpi_support/acpi_asus.c index 1e56980a6ecd..ae50f43a6d05 100644 --- a/sys/dev/acpi_support/acpi_asus.c +++ b/sys/dev/acpi_support/acpi_asus.c @@ -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); diff --git a/sys/i386/acpica/acpi_asus.c b/sys/i386/acpica/acpi_asus.c index 1e56980a6ecd..ae50f43a6d05 100644 --- a/sys/i386/acpica/acpi_asus.c +++ b/sys/i386/acpica/acpi_asus.c @@ -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);