net: sched: remove redundant helpers tcf_exts_is_predicative and tcf_exts_is_available
These two helpers are doing the same as tcf_exts_has_actions, so remove them and use tcf_exts_has_actions instead. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
af69afc551
commit
6fc6d06e53
@@ -387,7 +387,7 @@ static int fw_dump(struct net *net, struct tcf_proto *tp, unsigned long fh,
|
||||
|
||||
t->tcm_handle = f->id;
|
||||
|
||||
if (!f->res.classid && !tcf_exts_is_available(&f->exts))
|
||||
if (!f->res.classid && !tcf_exts_has_actions(&f->exts))
|
||||
return skb->len;
|
||||
|
||||
nest = nla_nest_start(skb, TCA_OPTIONS);
|
||||
|
Reference in New Issue
Block a user