]> git.baikalelectronics.ru Git - kernel.git/commit
[MYRI_SBUS]: Prevent that myri_do_handshake lies about ticks.
authorRoel Kluin <12o3l@tiscali.nl>
Tue, 13 Nov 2007 11:16:17 +0000 (03:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2007 11:16:17 +0000 (03:16 -0800)
commit5a4abc57203111d3fe188e9c53bba1c257bc81da
tree6ca945d7594933d8aa4157c273da08c178000808
parent8acccf1db5df258c7f4a8ef1a249dad78a82eff5
[MYRI_SBUS]: Prevent that myri_do_handshake lies about ticks.

With '<=' tick can be incremented up to 26, The last loop is redundant
since even when 'softstate' becomes 'STATE_READY', 'if (tick > 25)'
will still cause the function to return -1,

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/myri_sbus.c