diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-08-04 08:29:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-04 14:21:23 -0400 |
commit | 6fc6d06e5371507e68c6904a3423622b0e465b64 (patch) | |
tree | c560b38f0edfa84e244ec548f4c492f2e6bf67bb /net/sched/cls_route.c | |
parent | af69afc551eb9f9b1f2cc3295e2dfcdaa1dc948d (diff) |
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>
Diffstat (limited to 'net/sched/cls_route.c')
-rw-r--r-- | net/sched/cls_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c index d63d5502ee02..26f863634862 100644 --- a/net/sched/cls_route.c +++ b/net/sched/cls_route.c | |||
@@ -113,7 +113,7 @@ static inline int route4_hash_wild(void) | |||
113 | #define ROUTE4_APPLY_RESULT() \ | 113 | #define ROUTE4_APPLY_RESULT() \ |
114 | { \ | 114 | { \ |
115 | *res = f->res; \ | 115 | *res = f->res; \ |
116 | if (tcf_exts_is_available(&f->exts)) { \ | 116 | if (tcf_exts_has_actions(&f->exts)) { \ |
117 | int r = tcf_exts_exec(skb, &f->exts, res); \ | 117 | int r = tcf_exts_exec(skb, &f->exts, res); \ |
118 | if (r < 0) { \ | 118 | if (r < 0) { \ |
119 | dont_cache = 1; \ | 119 | dont_cache = 1; \ |