From: Sebastian Andrzej Siewior Date: Fri, 15 Sep 2023 18:10:04 +0000 (+0200) Subject: selftests: hsr: Use `let' properly. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5c3ce539a11185268aff3bb30d2fad8c7fa42f86;p=linux.git 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: Sebastian Andrzej Siewior Signed-off-by: David S. Miller --- diff --git a/tools/testing/selftests/net/hsr/hsr_ping.sh b/tools/testing/selftests/net/hsr/hsr_ping.sh index df91435387086..183f4a0f19dd9 100755 --- a/tools/testing/selftests/net/hsr/hsr_ping.sh +++ b/tools/testing/selftests/net/hsr/hsr_ping.sh @@ -197,7 +197,7 @@ do break fi sleep 1 - let WAIT = WAIT - 1 + let "WAIT = WAIT - 1" done # Just a safety delay in case the above check didn't handle it.