diff options
author | Tom Rini <trini@konsulko.com> | 2016-12-03 19:43:51 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-12-03 19:43:51 -0500 |
commit | 73eed452b9c9827474c0789c30729dca6fcf061d (patch) | |
tree | b33a39a41b7b2891b0171f79ea9b5599658884c3 /cmd/tpm_test.c | |
parent | bfb380b30ad2d678c09037560abb6f09a5e9c9b6 (diff) | |
parent | a2558e8729831e0bcef634ea2440e60425ef0ff6 (diff) | |
download | u-boot-imx-73eed452b9c9827474c0789c30729dca6fcf061d.zip u-boot-imx-73eed452b9c9827474c0789c30729dca6fcf061d.tar.gz u-boot-imx-73eed452b9c9827474c0789c30729dca6fcf061d.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-dm
Diffstat (limited to 'cmd/tpm_test.c')
-rw-r--r-- | cmd/tpm_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd/tpm_test.c b/cmd/tpm_test.c index 65332d1..3306405 100644 --- a/cmd/tpm_test.c +++ b/cmd/tpm_test.c @@ -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[]) { cmd_tbl_t *c; + int i; printf("argc = %d, argv = ", argc); - do { - int i = 0; - for (i = 0; i < argc; i++) - printf(" %s", argv[i]); - printf("\n------\n"); - } while (0); + for (i = 0; i < argc; i++) + printf(" %s", argv[i]); + + printf("\n------\n"); + argc--; argv++; c = find_cmd_tbl(argv[0], cmd_cros_tpm_sub, |