From: Steve Glendinning Date: Wed, 4 Mar 2009 07:33:24 +0000 (+0000) Subject: smsc911x: check for FFWD success before checking for timeout X-Git-Tag: v2.6.30-rc1~662^2~245 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dacd548129d03e87751f75ea83b42a8a17ee651;p=pandora-kernel.git smsc911x: check for FFWD success before checking for timeout This patch from Juha Leppanen suppresses a false warning if a fast forward operation succeeds on the very last attempt. Juha> If smsc911x_reg_read loop is executed 500 times, timeout reaches 0 Juha> and the 500th smsc911x_reg_read result in val is ignored. If Juha> testing order is changed, then val is checked first. The 500th Juha> reg_read might be GOOD, why ignore it! Signed-off-by: Steve Glendinning Signed-off-by: David S. Miller --- Reading git-diff-tree failed