tools: kwboot: Cosmetic fix - add missing curly brackets
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:14:20 +0000 (11:14 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:32 +0000 (09:49 +0200)
Add missing curly brackets for this else statement.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Chris Packham <judge.packham@gmail.com>
tools/kwboot.c

index 941f4228f9828f13831a0c934bf12f3fc717f689..c0ac4ce19e9c396a55cccbaa70337ceb3a7b0bb6 100644 (file)
@@ -479,13 +479,14 @@ kwboot_term_pipe(int in, int out, char *quit, int *s)
                                        return 0;
                                buf++;
                                nin--;
-                       } else
+                       } else {
                                while (*s > 0) {
                                        nout = write(out, quit, *s);
                                        if (nout <= 0)
                                                return -1;
                                        (*s) -= nout;
                                }
+                       }
                }
        }