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

@@ -224,8 +224,8 @@ int tcf_hash_search(struct tc_action_net *tn, struct tc_action *a, u32 index)
}
EXPORT_SYMBOL(tcf_hash_search);
int tcf_hash_check(struct tc_action_net *tn, u32 index, struct tc_action *a,
int bind)
bool tcf_hash_check(struct tc_action_net *tn, u32 index, struct tc_action *a,
int bind)
{
struct tcf_hashinfo *hinfo = tn->hinfo;
struct tcf_common *p = NULL;
@@ -235,9 +235,9 @@ int tcf_hash_check(struct tc_action_net *tn, u32 index, struct tc_action *a,
p->tcfc_refcnt++;
a->priv = p;
a->hinfo = hinfo;
return 1;
return true;
}
return 0;
return false;
}
EXPORT_SYMBOL(tcf_hash_check);