[PATCH 28/31] tools: mtk_image: split gfh header verification into a new function

Simon Glass sjg at chromium.org
Thu Aug 4 15:57:31 CEST 2022


On Wed, 3 Aug 2022 at 21:40, Weijie Gao <weijie.gao at mediatek.com> wrote:
>
> The verification code of gfh header for NAND and non-NAND are identical.
> It's better to define a individual function to reduce redundancy.
>
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
>  tools/mtk_image.c | 51 +++++++++++++++++++----------------------------
>  1 file changed, 21 insertions(+), 30 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list