diff options
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 5889bda5a03..74463a07d48 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -941,10 +941,6 @@ static void asus_hotk_notify(struct acpi_device *device, u32 event) | |||
941 | static struct key_entry *key; | 941 | static struct key_entry *key; |
942 | u16 count; | 942 | u16 count; |
943 | 943 | ||
944 | /* TODO Find a better way to handle events count. */ | ||
945 | if (!hotk) | ||
946 | return; | ||
947 | |||
948 | /* | 944 | /* |
949 | * We need to tell the backlight device when the backlight power is | 945 | * We need to tell the backlight device when the backlight power is |
950 | * switched | 946 | * switched |
@@ -957,6 +953,7 @@ static void asus_hotk_notify(struct acpi_device *device, u32 event) | |||
957 | lcd_blank(FB_BLANK_POWERDOWN); | 953 | lcd_blank(FB_BLANK_POWERDOWN); |
958 | } | 954 | } |
959 | 955 | ||
956 | /* TODO Find a better way to handle events count. */ | ||
960 | count = hotk->event_count[event % 128]++; | 957 | count = hotk->event_count[event % 128]++; |
961 | acpi_bus_generate_proc_event(hotk->device, event, count); | 958 | acpi_bus_generate_proc_event(hotk->device, event, count); |
962 | acpi_bus_generate_netlink_event(hotk->device->pnp.device_class, | 959 | acpi_bus_generate_netlink_event(hotk->device->pnp.device_class, |