summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-04-02 06:51:54 +0200
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2023-05-02 14:09:19 +0300
commit7e218c19c74bcedf3a2225fe2bf1aee34b2bb5ee (patch)
treebf2833322e268fe61767b175457a68109a0afe92 /cmd
parent50f64026f7a4c2d0a101c93916e01782e4fbbe7f (diff)
downloadu-boot-7e218c19c74bcedf3a2225fe2bf1aee34b2bb5ee.tar.gz
cmd: missing break in test_write_limit()
In test_write_limit() an unintended fall-through occurs. Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/tpm_test.c1
1 files changed, 1 insertions, 0 deletions
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);