hush: avoid NULL check before free()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 28 Apr 2020 19:56:10 +0000 (21:56 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 May 2020 15:34:01 +0000 (11:34 -0400)
commitf4070e6f6c680034d67f13b878f0da55b3b51f92
tree636a91e95b018a0d89436db9f53d8e84068a6115
parent4fb0f55fd294aca02407ef1def74a22612fa041b
hush: avoid NULL check before free()

free() checks if its argument is NULL. Don't duplicate this in the calling
code.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/cli_hush.c