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>
This commit is contained in:
WANG Cong
2016-06-13 13:46:28 -07:00
committed by David S. Miller
parent a6e225cad3
commit b2313077ed
8 changed files with 18 additions and 13 deletions

View File

@@ -97,7 +97,8 @@ static int __tcf_ipt_init(struct tc_action_net *tn, struct nlattr *nla,
struct tcf_ipt *ipt;
struct xt_entry_target *td, *t;
char *tname;
int ret = 0, err, exists = 0;
bool exists = false;
int ret = 0, err;
u32 hook = 0;
u32 index = 0;