
25 May
2020
25 May
'20
3:14 a.m.
On Mon, May 25, 2020 at 7:38 AM Simon Glass sjg@chromium.org wrote:
This function currently returns a node pointer so there is no way to know the error code. Also it uses data in BSS which seems unnecessary since the caller might prefer to use a local variable.
Update the function and split its body out into a separate function so we can use it later.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v4: None Changes in v3: None Changes in v2:
- Fix s/u8/void/ in find_uncached()
- Fix setting of start in file_cbfs_find_uncached()
- Add more comments on @node in file_cbfs_find_uncached()
fs/cbfs/cbfs.c | 48 +++++++++++++++++++++++++++--------------------- include/cbfs.h | 17 +++++++++-------- 2 files changed, 36 insertions(+), 29 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com