xkb: fix null dereference

Just an obvious silly mistake.

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
Ran Benita authored and David Herrmann committed 2012-07-07 13:47:19 +02:00
1 parent 8256ef6686
commit fd85a7b2ce
1 file changed
+1 -1
+1 -1
View File
@@ -151,7 +151,7 @@ int kbd_dev_process_key(struct kbd_dev *kbd,
if (key_state == KEY_REPEATED && !xkb_key_repeats(keymap, keycode))
return -ENOKEY;
if (num_keysyms < 0)
if (num_keysyms <= 0)
return -ENOKEY;
/*