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
@@ -113,7 +113,7 @@ static inline int route4_hash_wild(void)
|
||||
#define ROUTE4_APPLY_RESULT() \
|
||||
{ \
|
||||
*res = f->res; \
|
||||
if (tcf_exts_is_available(&f->exts)) { \
|
||||
if (tcf_exts_has_actions(&f->exts)) { \
|
||||
int r = tcf_exts_exec(skb, &f->exts, res); \
|
||||
if (r < 0) { \
|
||||
dont_cache = 1; \
|
||||
|
Reference in New Issue
Block a user