diff options
author | Simon Glass | 2020-05-24 17:38:24 -0600 |
---|---|---|
committer | Bin Meng | 2020-05-27 14:40:09 +0800 |
commit | 0621b5e1eeb6bcf08b220136f09d433d880f65a5 (patch) | |
tree | a007bea38f55122ef7c74169e22106c8efeaf42f /include/cbfs.h | |
parent | 03d4c298fa801139b37108fab83cb312209d6092 (diff) |
cbfs: Don't require the CBFS size with cbfs_init_mem()
The size is not actually used since it is present in the header. Drop this
parameter. Also tidy up error handling while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/cbfs.h')
-rw-r--r-- | include/cbfs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/cbfs.h b/include/cbfs.h index 1aff110acbb..5f296d6a371 100644 --- a/include/cbfs.h +++ b/include/cbfs.h @@ -149,11 +149,10 @@ const struct cbfs_cachenode *cbfs_find_file(struct cbfs_priv *cbfs, * cbfs_init_mem() - Set up a new CBFS * * @base: Base address of CBFS - * @size: Size of CBFS in bytes * @cbfsp: Returns a pointer to CBFS on success * @return 0 if OK, -ve on error */ -int cbfs_init_mem(ulong base, ulong size, struct cbfs_priv **privp); +int cbfs_init_mem(ulong base, struct cbfs_priv **privp); /***************************************************************************/ |