]> Git Repo - J-u-boot.git/commitdiff
cmd: missing break in test_write_limit()
authorHeinrich Schuchardt <[email protected]>
Sun, 2 Apr 2023 04:51:54 +0000 (06:51 +0200)
committerIlias Apalodimas <[email protected]>
Tue, 2 May 2023 11:09:19 +0000 (14:09 +0300)
In test_write_limit() an unintended fall-through occurs.

Suggested-by: Simon Glass <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
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);
This page took 0.036503 seconds and 4 git commands to generate.