diff options
author | Matthew Garrett <mjg@redhat.com> | 2009-06-10 15:40:48 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-17 23:44:22 -0400 |
commit | db18b040af6571a7eeed9e1adc2e92c9c87e4b1a (patch) | |
tree | d6da9d9d34e367612c574006d0ccbe7155d2b372 /drivers/platform | |
parent | 5cab0098171712a9fd51399b06181c8dfdebe9c9 (diff) |
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')
-rw-r--r-- | drivers/platform/x86/dell-wmi.c | 4 |
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) | |||
176 | input_sync(dell_wmi_input_dev); | 176 | input_sync(dell_wmi_input_dev); |
177 | input_report_key(dell_wmi_input_dev, key->keycode, 0); | 177 | input_report_key(dell_wmi_input_dev, key->keycode, 0); |
178 | input_sync(dell_wmi_input_dev); | 178 | input_sync(dell_wmi_input_dev); |
179 | } else | 179 | } else if (buffer[1] & 0xFFFF) |
180 | printk(KERN_INFO "dell-wmi: Unknown key %x pressed\n", | 180 | printk(KERN_INFO "dell-wmi: Unknown key %x pressed\n", |
181 | buffer[1]); | 181 | buffer[1] & 0xFFFF); |
182 | } | 182 | } |
183 | } | 183 | } |
184 | 184 | ||