summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2009-06-10 21:40:48 +0200
committerLen Brown <len.brown@intel.com>2009-06-18 05:44:22 +0200
commitdb18b040af6571a7eeed9e1adc2e92c9c87e4b1a (patch)
treed6da9d9d34e367612c574006d0ccbe7155d2b372
parentdell-wmi: add additional keyboard events (diff)
downloadlinux-db18b040af6571a7eeed9e1adc2e92c9c87e4b1a.tar.xz
linux-db18b040af6571a7eeed9e1adc2e92c9c87e4b1a.zip
dell-wmi: don't generate errors on empty messages
There's no point in generating kernel messages if we didn't receive a parsable keyboard event - only do so if there appeared to be a scancode. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--drivers/platform/x86/dell-wmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 9f345dc2d1b1..0f900cc9fa7a 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -176,9 +176,9 @@ static void dell_wmi_notify(u32 value, void *context)
input_sync(dell_wmi_input_dev);
input_report_key(dell_wmi_input_dev, key->keycode, 0);
input_sync(dell_wmi_input_dev);
- } else
+ } else if (buffer[1] & 0xFFFF)
printk(KERN_INFO "dell-wmi: Unknown key %x pressed\n",
- buffer[1]);
+ buffer[1] & 0xFFFF);
}
}