lm8333: Fix check ordering
authorAlan Cox <alan@linux.intel.com>
Wed, 27 Jun 2012 11:02:07 +0000 (12:02 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 27 Jun 2012 15:35:55 +0000 (17:35 +0200)
commit954bd6d1c9f6a545a594517b1a4aa9262b613f14
tree8c7f15be65a7c7cfd1f6c063b5a79a9f50c8c45b
parentc224071e28e2bbd213cce2e6e9dde26e78542ca8
lm8333: Fix check ordering

Fix harmless reference off end of array

Reported-by: <dcb314@hotmail.com>
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?43861
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/input/keyboard/lm8333.c