mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
|
Reference in New Issue
Block a user