From: Axel Lin Date: Tue, 14 Jun 2011 11:12:57 +0000 (+0800) Subject: gpio/ml-ioh: fix off-by-one for displaying variable i in dev_err X-Git-Tag: v3.1-rc1~313^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33300571b1111264fd0c5701733f7576323f3e35;p=pandora-kernel.git gpio/ml-ioh: fix off-by-one for displaying variable i in dev_err with the "for (; i != 0; i--)" sytax, i-- will be executed after the iteration. thus dev_err shows wrong i value. Switch to "while(--i >= 0)" which is better in readability. Signed-off-by: Axel Lin Signed-off-by: Grant Likely --- Reading git-diff-tree failed