Skip to content
Commit 9db7720c authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller
Browse files

[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
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