The final line with the linefeeds should obviously only printed once
(what the code actually does), but the indentation suggests otherwise.

Fix the indentation to avoid compiler warnings and puzzled readers.

Pointed out by GCC 6.2's -Wmisleading-indentation warning.

Signed-off-by: Andre Przywara <andre.przyw...@arm.com>
---
 cmd/tpm_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/tpm_test.c b/cmd/tpm_test.c
index 65332d1..576e4fb 100644
--- a/cmd/tpm_test.c
+++ b/cmd/tpm_test.c
@@ -539,8 +539,8 @@ static int do_tpmtest(cmd_tbl_t *cmdtp, int flag, int argc, 
char * const argv[])
 
                for (i = 0; i < argc; i++)
                        printf(" %s", argv[i]);
-                       printf("\n------\n");
-               } while (0);
+               printf("\n------\n");
+       } while (0);
        argc--;
        argv++;
        c = find_cmd_tbl(argv[0], cmd_cros_tpm_sub,
-- 
2.8.2

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to