]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc/m_gact: Drop dead code
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Aug 2017 17:09:31 +0000 (19:09 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 22 Aug 2017 00:12:21 +0000 (17:12 -0700)
commit73aa988868e7e068b4fc0daaca7cfdb3e07fe744
tree102cb1fc7df472a6d1f548fe7c0e76583d0c9c75
parente469523e8e8d1d31c3b35251105e2a843216d687
tc/m_gact: Drop dead code

The use of 'ok' variable in parse_gact() is ineffective: The second
conditional increments it either if *argv is 'gact' or if
parse_action_control() doesn't fail (in which case exit() is called).
So this is effectively an unconditional increment and since no decrement
happens anywhere, all remaining checks for 'ok != 0' can be dropped.

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