Commit 5c3ce539 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by David S. Miller

selftests: hsr: Use `let' properly.

The timeout in the while loop is never subtracted due wrong usage of
`let' leading to an endless loop if the former condition never gets
true.

Put the statement for let in quotes so it is parsed as a single
statement.
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fbd825fc
...@@ -197,7 +197,7 @@ do ...@@ -197,7 +197,7 @@ do
break break
fi fi
sleep 1 sleep 1
let WAIT = WAIT - 1 let "WAIT = WAIT - 1"
done done
# Just a safety delay in case the above check didn't handle it. # Just a safety delay in case the above check didn't handle it.
......
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