]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd: Fix a size parameter in test_readonly()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 25 Jul 2023 06:50:26 +0000 (09:50 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 8 Aug 2023 21:05:43 +0000 (17:05 -0400)
commit57175285774751ca751d3d5e9f045d6af95ea43b
tree38e95bebdc8ab92e59b3b75d2ff5e9d5f7eb8aee
parent1ded89e78bca4c43db8e46841c589366202cb2b0
cmd: Fix a size parameter in test_readonly()

The parentheses are in the wrong place so this passes the number of
bytes to write as "sizeof(index_0) != TPM_SUCCESS" when just
"sizeof(index_0)" was intended.  (1 byte vs 4 bytes).

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
cmd/tpm_test.c