[PATCH 1/1] hush: avoid NULL check before free()

Simon Glass sjg at chromium.org
Wed Apr 29 00:40:53 CEST 2020


On Tue, 28 Apr 2020 at 13:56, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> free() checks if its argument is NULL. Don't duplicate this in the calling
> code.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  common/cli_hush.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>

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


More information about the U-Boot mailing list