summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/dell-wmi.c
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2009-06-10 19:40:48 +0000
committerLen Brown <len.brown@intel.com>2009-06-17 23:44:22 -0400
commitdb18b040af6571a7eeed9e1adc2e92c9c87e4b1a (patch)
treed6da9d9d34e367612c574006d0ccbe7155d2b372 /drivers/platform/x86/dell-wmi.c
parent5cab0098171712a9fd51399b06181c8dfdebe9c9 (diff)
downloadop-kernel-dev-db18b040af6571a7eeed9e1adc2e92c9c87e4b1a.zip
op-kernel-dev-db18b040af6571a7eeed9e1adc2e92c9c87e4b1a.tar.gz
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>
Diffstat (limited to 'drivers/platform/x86/dell-wmi.c')
-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 9f345dc..0f900cc 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);
}
}
OpenPOWER on IntegriCloud