diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-06-30 11:23:39 +0100 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2025-07-01 08:46:38 +0300 |
commit | 1fde88de1609a046285675ab76e8ecd3e7792b2b (patch) | |
tree | 4fccf7dda14e9ac0c97543958eb10db66f198224 /drivers/ram/stm32mp1/stm32mp1_ddr.c | |
parent | 490ae8ceae2d5999c9de863e014e463f5c1495a6 (diff) |
cmd: tpm: Fix attempt to return value not in enum
The function tpm2_name_to_algorithm is defined as returning an
enum for the algorithm specified but it also attempts to return
an error on failure, but that error is not included in the enum.
Add the error to the enum so that it can be returned.
This issue was reported by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'drivers/ram/stm32mp1/stm32mp1_ddr.c')
0 files changed, 0 insertions, 0 deletions