diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-06-13 13:46:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-15 12:43:35 -0700 |
commit | b2313077ed0db35ee186905d8076a737248edd24 (patch) | |
tree | 3fdd2518d4a32669fd03a3d5a8e7376c7317da87 /net/sched/act_ife.c | |
parent | a6e225cad3659ac904c81dbbbc9b5725a3d67ae2 (diff) | |
download | linux-b2313077ed0db35ee186905d8076a737248edd24.tar.bz2 |
net_sched: make tcf_hash_check() boolean
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_ife.c')
-rw-r--r-- | net/sched/act_ife.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/act_ife.c b/net/sched/act_ife.c index 02f5a8ba95d7..b7fa96926c90 100644 --- a/net/sched/act_ife.c +++ b/net/sched/act_ife.c @@ -423,7 +423,8 @@ static int tcf_ife_init(struct net *net, struct nlattr *nla, u16 ife_type = 0; u8 *daddr = NULL; u8 *saddr = NULL; - int ret = 0, exists = 0; + bool exists = false; + int ret = 0; int err; err = nla_parse_nested(tb, TCA_IFE_MAX, nla, ife_policy); |