mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
9ae0e14350
commit
0427b9c525
1 changed files with 6 additions and 6 deletions
|
@ -532,15 +532,15 @@ static cmd_tbl_t cmd_cros_tpm_sub[] = {
|
||||||
static int do_tpmtest(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
static int do_tpmtest(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
{
|
{
|
||||||
cmd_tbl_t *c;
|
cmd_tbl_t *c;
|
||||||
|
int i;
|
||||||
|
|
||||||
printf("argc = %d, argv = ", argc);
|
printf("argc = %d, argv = ", argc);
|
||||||
do {
|
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
for (i = 0; i < argc; i++)
|
for (i = 0; i < argc; i++)
|
||||||
printf(" %s", argv[i]);
|
printf(" %s", argv[i]);
|
||||||
|
|
||||||
printf("\n------\n");
|
printf("\n------\n");
|
||||||
} while (0);
|
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
c = find_cmd_tbl(argv[0], cmd_cros_tpm_sub,
|
c = find_cmd_tbl(argv[0], cmd_cros_tpm_sub,
|
||||||
|
|
Loading…
Reference in a new issue