commit | c72d4a8eb6c61a6edc3ae8c6fb396978c4b1bae8 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun May 24 17:38:15 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Wed May 27 14:40:09 2020 +0800 |
tree | b55addaae14475724d76caff25c387e9cecc0a2b | |
parent | 2029a6d426e8ed2a99866958ac1b7e9b917ff3a7 [diff] |
cbfs: Adjust return value of file_cbfs_next_file() At present this uses a true return to indicate it found a file. Adjust it to use 0 for this, so it is consistent with other functions. Update its callers accordingly and add a check for malloc() failure in file_cbfs_fill_cache(). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>