From 7e218c19c74bcedf3a2225fe2bf1aee34b2bb5ee Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 2 Apr 2023 06:51:54 +0200 Subject: [PATCH] cmd: missing break in test_write_limit() In test_write_limit() an unintended fall-through occurs. Suggested-by: Simon Glass Signed-off-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass Signed-off-by: Ilias Apalodimas --- cmd/tpm_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/tpm_test.c b/cmd/tpm_test.c index b35eae81dc..c4ed8e5901 100644 --- a/cmd/tpm_test.c +++ b/cmd/tpm_test.c @@ -471,6 +471,7 @@ static int test_write_limit(struct udevice *dev) break; case TPM_MAXNVWRITES: assert(i >= TPM_MAX_NV_WRITES_NOOWNER); + break; default: pr_err("\tunexpected error code %d (0x%x)\n", result, result); -- 2.39.5