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

2020-05-13 Thread Simon Glass
At present his 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 accordingling and add a check for malloc() failure in file_cbfs_fill_cache(). Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 43

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

2020-05-19 Thread Bin Meng
On Wed, May 13, 2020 at 10:24 PM Simon Glass 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 >