[U-Boot] [PATCH 084/126] x86: Tidy up error handling in mrccache_save()

Bin Meng bmeng.cn at gmail.com
Thu Oct 10 07:07:59 UTC 2019


On Wed, Sep 25, 2019 at 10:59 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>
> ---
>
>  arch/x86/lib/mrccache.c | 17 ++++++-----------
>  1 file changed, 6 insertions(+), 11 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list