cbfs: Don't require the CBFS size with cbfs_init_mem()
authorSimon Glass <sjg@chromium.org>
Sun, 24 May 2020 23:38:24 +0000 (17:38 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 27 May 2020 06:40:09 +0000 (14:40 +0800)
commit0621b5e1eeb6bcf08b220136f09d433d880f65a5
treea007bea38f55122ef7c74169e22106c8efeaf42f
parent03d4c298fa801139b37108fab83cb312209d6092
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>
arch/x86/lib/fsp2/fsp_init.c
fs/cbfs/cbfs.c
include/cbfs.h