From d75d591af73e2ebe52137221f4d87ce23f6c22d8 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 28 May 2024 10:25:50 +0200 Subject: [PATCH] tools: tests: remove unneeded ';' in while loops We're already breaking the line between while and do so there's no need for the ';' character. Suggested-by: Andy Shevchenko Reviewed-by: Kent Gibson Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20240528-fix-bash-tests-v3-3-e9b5be2ba8bf@linaro.org Signed-off-by: Bartosz Golaszewski --- tools/gpio-tools-test.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gpio-tools-test.bash b/tools/gpio-tools-test.bash index 1bd7d89..b6809f3 100755 --- a/tools/gpio-tools-test.bash +++ b/tools/gpio-tools-test.bash @@ -211,7 +211,7 @@ dut_read_redirect() { dut_read() { local LINE lines=() - while read -t 0.2 -u ${COPROC[0]} LINE; + while read -t 0.2 -u ${COPROC[0]} LINE do if [ -n "$DUT_FIRST_CHAR" ] then @@ -232,7 +232,7 @@ dut_flush() { lines=() output= unset DUT_FIRST_CHAR - while read -t 0 -u ${COPROC[0]} JUNK; + while read -t 0 -u ${COPROC[0]} JUNK do read -t 0.1 -u ${COPROC[0]} JUNK || true done -- 2.30.2