diff options
author | Dong Du <Dd_nirvana@sjtu.edu.cn> | 2021-08-27 22:46:28 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-09-03 11:59:35 +0530 |
commit | 1718b1642ee8c31eb2c49d78b5834e06f3324394 (patch) | |
tree | 9be55a03f345e11b6bd3fa1d2626e3d28ec621f1 /lib/utils/reset/objects.mk | |
parent | c2623065331a9ae93f7dbd9d1bc7b4d46d0415a6 (diff) |
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>
Diffstat (limited to 'lib/utils/reset/objects.mk')
0 files changed, 0 insertions, 0 deletions