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:Dong Du <Dd_nirvana@sjtu.edu.cn> Reviewed-by:
Atish Patra <atish.patra@wdc.com>
parent
c2623065
Please register or sign in to comment