[PATCH 1/1] cmd: missing break in test_write_limit()

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Apr 2 06:51:54 CEST 2023


In test_write_limit() an unintended fall-through occurs.

Suggested-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 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.2



More information about the U-Boot mailing list