]> git.ipfire.org Git - thirdparty/iproute2.git/commit
remove unnecessary checks for NULL before calling free()
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 10 May 2023 15:16:40 +0000 (08:16 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 10 May 2023 15:16:40 +0000 (08:16 -0700)
commitcfb60ba56bf35f28505e7ff67f1efd9bd3e1d5c6
treed95beebba6ec05f33ffefbbcb9f9cd1e5ace5a6e
parenteb64e268354ab68b4737187200b8769ae158a455
remove unnecessary checks for NULL before calling free()

The function free() handles the case wher argument is NULL
by doing nothing. So the extra checks are not needed.

Found by modified version of kernel coccinelle script.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipnexthop.c
lib/utils.c
tc/m_ipt.c
tc/m_xt.c
tc/m_xt_old.c
tc/tc_qdisc.c