Skip to content

Commit caae2f7

Browse files
clementlegeravpatel
authored andcommitted
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 <cleger@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
1 parent e8717d1 commit caae2f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/sbi/sbi_fwft.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ int sbi_fwft_set(enum sbi_fwft_feature_t feature, unsigned long value,
196196
return ret;
197197

198198
if ((flags & ~SBI_FWFT_SET_FLAG_LOCK) != 0)
199-
return SBI_ERR_INVALID_PARAM;
199+
return SBI_EINVAL;
200200

201201
if (conf->flags & SBI_FWFT_SET_FLAG_LOCK)
202202
return SBI_EDENIED;

0 commit comments

Comments
 (0)