lib: sbi: Don't check SBI error range for legacy console getchar
authorAnup Patel <apatel@ventanamicro.com>
Mon, 17 Apr 2023 04:18:13 +0000 (09:48 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 17 Apr 2023 04:18:13 +0000 (09:48 +0530)
commitf5dfd991396891d87d7780be45f887bc9ed13099
treed36d0b0a0b59a27aaa9f9a6da03254bdf474d80e
parent674e0199b23effebfc5311d09b636ca9b46cde7e
lib: sbi: Don't check SBI error range for legacy console getchar

The legacy console getchar SBI call returns character value in
the sbiret.error field so the "SBI_SUCCESS < ret" check in
sbi_ecall_handler() results in unwanted error prints for the
legacy console getchar SBI call. Let's suppress these unwanted
error prints.

Fixes: 67b2a408924b ("lib: sbi: sbi_ecall: Check the range of
SBI error")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
lib/sbi/sbi_ecall.c