]> git.baikalelectronics.ru Git - uboot.git/commit
cmd/gpt: avoid NULL check before free()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 28 Apr 2020 19:40:13 +0000 (21:40 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 May 2020 15:34:01 +0000 (11:34 -0400)
commit36fa4c83832c501646625fce1aff473d5771b58a
treea14d992d100d75da51a7b7b3bcff2b58f485ac2e
parent531b4a06720b39fa1d16295e57cf6f991697d8de
cmd/gpt: avoid NULL check before free()

free() checks if its argument is NULL. Do not duplicate this in the calling
code.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/gpt.c