[PATCH v6 033/102] x86: Tidy up error handling in mrccache_save()

Bin Meng bmeng.cn at gmail.com
Sun Dec 8 04:02:35 CET 2019


On Sat, Dec 7, 2019 at 12:48 PM Simon Glass <sjg at chromium.org> wrote:
>
> This function is a bit confusing at present due to the error handling.
> Update it to remove the goto, returning errors as they happen.
>
> While we are here, use hex for the data size since this is the norm in
> U-Boot.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v6: None
> Changes in v5: None
> Changes in v4: None
> Changes in v3:
> - Move an additional error handling fix from a future patch
>
> Changes in v2: None
>
>  arch/x86/lib/mrccache.c | 19 +++++++------------
>  1 file changed, 7 insertions(+), 12 deletions(-)
>

applied to u-boot-x86/next, thanks!


More information about the U-Boot mailing list