net: sun4i: fix timeout check
authorEmilio López <emilio@elopez.com.ar>
Tue, 23 Jul 2013 01:09:18 +0000 (22:09 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2013 00:04:20 +0000 (17:04 -0700)
The current timeout check is comparing two constant values, so it won't
ever detect a timeout. This patch reworks the affected code a bit so it
has a chance at detecting timeouts correctly.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found