Commit 831eba9c authored by David S. Miller's avatar David S. Miller Committed by Patrick McHardy

[PKT_SCHED]: Fixed missed return in tcf_hash_init().

Noticed by Andrew Morton.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7cd101a5
......@@ -274,11 +274,11 @@ tcf_hash_create(struct tc_st *parm, struct rtattr *est, struct tc_action *a, int
static inline struct tcf_st *
tcf_hash_init(struct tc_st *parm, struct rtattr *est, struct tc_action *a, int size, int ovr, int bind)
{
struct tcf_st *p;
p = tcf_hash_check (parm,a,ovr,bind);
if (NULL == p) {
return tcf_hash_create(parm, est, a, size, ovr, bind);
}
struct tcf_st *p = tcf_hash_check (parm,a,ovr,bind);
if (!p)
p = tcf_hash_create(parm, est, a, size, ovr, bind);
return p;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment