From: Anssi Hannula Date: Tue, 3 Nov 2009 22:57:35 +0000 (+0200) Subject: HID: pidff - fix unnecessary loop iterations on reset X-Git-Tag: v2.6.33-rc1~343^2^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1168df7e1cbfa4b45ba2bfd982ff535df50c273c;p=pandora-kernel.git 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 Signed-off-by: Anssi Hannula Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed