From: Sergei Shtylyov Date: Wed, 5 Jun 2013 19:54:01 +0000 (+0400) Subject: sh_eth: fix result of sh_eth_check_reset() on timeout X-Git-Tag: v3.10-rc6~18^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f8c4265bda4a6e9aa97041d5cfd91386f460b65;p=pandora-kernel.git sh_eth: fix result of sh_eth_check_reset() on timeout When the first loop in sh_eth_check_reset() runs to its end, 'cnt' is 0, so the following check for 'cnt < 0' fails to catch the timeout. Fix the condition in this check, so that the timeout is actually reported. While at it, fix the grammar in the failure message... Signed-off-by: Sergei Shtylyov Signed-off-by: David S. Miller --- Reading git-diff-tree failed