commit | 9c4221516263f97d9d3b6bec1d24a9a7afbdb162 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun May 24 17:38:22 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Wed May 27 14:40:09 2020 +0800 |
tree | ee443db70ff469b7c94b01e2f8464fe340e99c63 | |
parent | 04923176711c5d9af15241cb83be6a4bb3671b0c [diff] |
cbfs: Change file_cbfs_find_uncached() to return an error 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> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>