Commit 86cc9b86 authored by Atish Patra's avatar Atish Patra Committed by Anup Patel
Browse files

lib:platform: Fix sbi_getc return type.



As per the current SBI specification, sbi_getc should return
an int instead of char.

In case of FIFO is empty, return -1 as per the specification.

Reported-by: default avatarSergi Granell <xerpi.g.12@gmail.com>
Suggested-by: default avatarThadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>
Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
parent 05602e2b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment