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

Bin Meng bmeng.cn at gmail.com
Sat May 23 15:18:51 CEST 2020


Hi Simon,

On Sat, May 23, 2020 at 12:32 AM Simon Glass <sjg at chromium.org> wrote:
>
> At present his uses a true return to indicate it found a file. Adjust it

typo his => this was missed.

> 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().
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3:
> - Fix typo in commit message
>
> Changes in v2: None
>
>  fs/cbfs/cbfs.c | 43 +++++++++++++++++++++++--------------------
>  1 file changed, 23 insertions(+), 20 deletions(-)

Regards,
Bin


More information about the U-Boot mailing list