diff options
author | Corentin Chary <corentincj@iksaif.net> | 2009-11-28 04:35:37 -0500 |
---|---|---|
committer | Corentin Chary <corentincj@iksaif.net> | 2010-02-28 13:35:09 -0500 |
commit | 619d8b1187f2e13f6f848b1b2a4d83c2c9e2a140 (patch) | |
tree | a3108fc715f31e57baf8480baaa6006abe6f7315 /drivers/platform | |
parent | 91687cc89af4c447483ec65097809c38c8622639 (diff) |
asus-laptop: remove unecessary hotk != NULL check
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Diffstat (limited to 'drivers/platform')
-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, |