]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit5d1348cb43c08eb99739cbbecc391bd3f3ec4f18
tree636a91e95b018a0d89436db9f53d8e84068a6115
parent4b12ade92ad894799d03492089e9471326d2e735
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