]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc_util: Drop needless pointer check
authorPhil Sutter <phil@nwl.cc>
Wed, 15 Nov 2017 14:01:30 +0000 (15:01 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 17 Nov 2017 00:01:48 +0000 (16:01 -0800)
commitb7c61286de9e65ed3919eb4c3b6965afe9b87c8c
tree9a1f3dcff31024b781b5f38ccfc033d60074dda2
parentaab3661bd2a17f60ec45322c5f83c40a857ff1b2
tc_util: Drop needless pointer check

The function parse_action_control_slash() returns early if 'p' is NULL,
so after the first call to action_a2n(), 'p' is guaranteed not to be
NULL. Otherwise, the assignment '*p = 0' above would dereference the
NULL pointer already anyway, so just drop this check here.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tc/tc_util.c