summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-lg.c
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@iki.fi>2009-11-04 01:57:35 +0300
committerJiri Kosina <jkosina@suse.cz>2009-11-04 12:04:08 +0300
commit1168df7e1cbfa4b45ba2bfd982ff535df50c273c (patch)
treec619c65b41b5422f001f55b59e8bb183fd71b493 /drivers/hid/hid-lg.c
parent80f506918fdaaca6b574ba931536a58ce015c7be (diff)
downloadlinux-1168df7e1cbfa4b45ba2bfd982ff535df50c273c.tar.xz
HID: pidff - fix unnecessary loop iterations on reset
When encountering a strange value in the pool report, pidff_reset will always refetch the report 20 times, even if one of the retries results in a sane value. This is because a temporary variable being used to store the value is not being updated inside the loop. Fix it by using the value directly in the loop. Reported-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg.c')
0 files changed, 0 insertions, 0 deletions