Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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. */