diff options
| author | Clément Léger <[email protected]> | 2024-06-24 12:29:09 +0200 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-06-26 18:14:49 +0530 |
| commit | caae2f7d455c78c509782e1eb8d47dfdd874b903 (patch) | |
| tree | a1674acb081008b04d57365b4cd38444fdb39406 /lib | |
| parent | e8717d126401435896b0e96c18e187f0b2431d5e (diff) | |
lib: sbi: fwft: return SBI_EINVAL rather than SBI_ERR_INVALID_PARAM
Error code returned by the ecall handles should use the defines from
sbi_ecall_interface.h rather than sbi_error.h.
Signed-off-by: Clément Léger <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sbi/sbi_fwft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_fwft.c b/lib/sbi/sbi_fwft.c index 595819b6..f1ae9159 100644 --- a/lib/sbi/sbi_fwft.c +++ b/lib/sbi/sbi_fwft.c @@ -196,7 +196,7 @@ int sbi_fwft_set(enum sbi_fwft_feature_t feature, unsigned long value, return ret; if ((flags & ~SBI_FWFT_SET_FLAG_LOCK) != 0) - return SBI_ERR_INVALID_PARAM; + return SBI_EINVAL; if (conf->flags & SBI_FWFT_SET_FLAG_LOCK) return SBI_EDENIED; |
