]> git.dujemihanovic.xyz Git - u-boot.git/commit
cbfs: Adjust return value of file_cbfs_next_file()
authorSimon Glass <sjg@chromium.org>
Sun, 24 May 2020 23:38:15 +0000 (17:38 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 27 May 2020 06:40:09 +0000 (14:40 +0800)
commitc7bef7cf908449c39a23f712644d58a4836e987c
treeb55addaae14475724d76caff25c387e9cecc0a2b
parent381e1130a2c0cd4cf1d605bf9345673a9240ec30
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>
fs/cbfs/cbfs.c