]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: sched: choke: remove dead filter classify code
authorJiri Pirko <jiri@mellanox.com>
Thu, 23 Mar 2017 16:02:16 +0000 (17:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Mar 2017 19:47:10 +0000 (12:47 -0700)
commit5952fde10c35ecfefb0c3e61536170798d4a51c9
treefdaf47ed760ebd3a714339bca74aa378106f1fcb
parent270c7759fbbc99e1ed00259c752a8c53f31cfb27
net: sched: choke: remove dead filter classify code

sch_choke is classless qdisc so it does not define cl_ops. Therefore
filter_list cannot be ever changed, being NULL all the time.
Reason is this check in tc_ctl_tfilter:

/* Is it classful? */
cops = q->ops->cl_ops;
if (!cops)
return -EINVAL;

So remove this dead code.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_choke.c