lib: sbi: Fix return of sbi_console_init
authorXiang W <wxjstz@126.com>
Mon, 22 May 2023 05:18:06 +0000 (13:18 +0800)
committerAnup Patel <anup@brainfault.org>
Fri, 26 May 2023 07:06:54 +0000 (12:36 +0530)
commit8b99a7f7d8294be29e18a667d51e13755ed2c0e0
treea390cbb188c533ad5d6485772889b17b1e8c7b26
parentd4c46e0ff1b0ead9d5a586e1a19a00a92160206d
lib: sbi: Fix return of sbi_console_init

console is not a required peripheral. So it should return success when
the console does not exist.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_console.c