Commit 9db7720c authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller

[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: default avatarRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 81d9ddae
...@@ -134,7 +134,7 @@ static int myri_do_handshake(struct myri_eth *mp) ...@@ -134,7 +134,7 @@ static int myri_do_handshake(struct myri_eth *mp)
myri_disable_irq(mp->lregs, cregs); myri_disable_irq(mp->lregs, cregs);
while (tick++ <= 25) { while (tick++ < 25) {
u32 softstate; u32 softstate;
/* Wake it up. */ /* Wake it up. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment