mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
[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>
This commit is contained in:
parent
81d9ddae85
commit
9db7720cca
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ static int myri_do_handshake(struct myri_eth *mp)
|
|||
|
||||
myri_disable_irq(mp->lregs, cregs);
|
||||
|
||||
while (tick++ <= 25) {
|
||||
while (tick++ < 25) {
|
||||
u32 softstate;
|
||||
|
||||
/* Wake it up. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue