HID: pidff - fix unnecessary loop iterations on reset
authorAnssi Hannula <anssi.hannula@iki.fi>
Tue, 3 Nov 2009 22:57:35 +0000 (00:57 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Nov 2009 09:04:08 +0000 (10:04 +0100)
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>

No differences found