]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: missing break in test_write_limit()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 2 Apr 2023 04:51:54 +0000 (06:51 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 2 May 2023 11:09:19 +0000 (14:09 +0300)
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>
cmd/tpm_test.c

index b35eae81dc3e2151c326c5985b013e0b14112cdc..c4ed8e5901205b336d2e6ddc0eacc79950a4cd85 100644 (file)
@@ -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);