]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd/tpm_test: Fix misleading code indentation
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 16 Oct 2016 15:13:55 +0000 (17:13 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 2 Dec 2016 17:37:47 +0000 (10:37 -0700)
commit0427b9c52578b2bb0dc1a3058d732899d107f74d
tree4536722ea9df9604a7423ac1d43df072ea386970
parent9ae0e14350758e6447c90615ff4df530549a45e2
cmd/tpm_test: Fix misleading code indentation

GCC 6.2 reasonably complains about the current code:

../cmd/tpm_test.c: In function ‘do_tpmtest’:
../cmd/tpm_test.c:540:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   for (i = 0; i < argc; i++)
   ^~~
../cmd/tpm_test.c:542:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
    printf("\n------\n");
    ^~~~~~

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Updated to remove C99 variable decl:
Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/tpm_test.c