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:

committed by
David S. Miller

parent
a6e225cad3
commit
b2313077ed
@@ -86,8 +86,9 @@ static int tcf_simp_init(struct net *net, struct nlattr *nla,
|
||||
struct nlattr *tb[TCA_DEF_MAX + 1];
|
||||
struct tc_defact *parm;
|
||||
struct tcf_defact *d;
|
||||
bool exists = false;
|
||||
int ret = 0, err;
|
||||
char *defdata;
|
||||
int ret = 0, err, exists = 0;
|
||||
|
||||
if (nla == NULL)
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user