tools: tests: remove unneeded ';' in while loops
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 28 May 2024 08:25:50 +0000 (10:25 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 29 May 2024 13:32:00 +0000 (15:32 +0200)
We're already breaking the line between while and do so there's no need
for the ';' character.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240528-fix-bash-tests-v3-3-e9b5be2ba8bf@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tools/gpio-tools-test.bash

index 1bd7d899722492cd5a5b989ac945e7236259ab03..b6809f3790bfad96739427ba80e38e262cf72032 100755 (executable)
@@ -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