summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-07-01 07:41:40 -0600
committerTom Rini <[email protected]>2025-07-01 07:41:40 -0600
commitcff294c74cefa2ce01cac1dd8173b61a6731642a (patch)
tree639e42a2e297feb7cd0542ad54c22c0ae85a922b /lib
parent6c654d4b89a419469293466344553c52c2f9a736 (diff)
parent8280d2a77ffe72727ef1c729861231b523680dfb (diff)
Merge tag 'tpm-next-01072025' of https://source.denx.de/u-boot/custodians/u-boot-tpm into next
CI: https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/26897 Updates from Andrew fixing issues reported by smatch. It picked up cases of enum functions returning integers instead of enum values.
Diffstat (limited to 'lib')
-rw-r--r--lib/tpm-v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c
index 9ca7933c094..5b21c57ae42 100644
--- a/lib/tpm-v2.c
+++ b/lib/tpm-v2.c
@@ -1141,7 +1141,7 @@ enum tpm2_algorithms tpm2_name_to_algorithm(const char *name)
}
printf("%s: unsupported algorithm %s\n", __func__, name);
- return -EINVAL;
+ return TPM2_ALG_INVAL;
}
const char *tpm2_algorithm_name(enum tpm2_algorithms algo)