Commit 1718b164 authored by Dong Du's avatar Dong Du Committed by Anup Patel
Browse files

lib: sbi: Checking fifo validness in sbi_fifo_is_empty and is_full



As other exported fifo functions, we should check whether the fifo is
valid in sbi_fifo_is_empty and sbi_fifo_is_full. To this end, this patch
changes the retval from bool to int, and the two functions will return
SBI_EINVAL in the case the fifo is invalid.

Signed-off-by: default avatarDong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: default avatarAtish Patra <atish.patra@wdc.com>
parent c2623065
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