[PATCH 04/13] cbfs: Adjust return value of file_cbfs_next_file()

Bin Meng bmeng.cn at gmail.com
Tue May 19 16:04:13 CEST 2020


On Wed, May 13, 2020 at 10:24 PM Simon Glass <sjg at chromium.org> wrote:
>
> At present his uses a true return to indicate it found a file. Adjust it

typo: this

> to use 0 for this, so it is consistent with other functions.
>
> Update its callers accordingling and add a check for malloc() failure in

accordingly

> file_cbfs_fill_cache().
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  fs/cbfs/cbfs.c | 43 +++++++++++++++++++++++--------------------
>  1 file changed, 23 insertions(+), 20 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list