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 ...@@ -274,11 +274,11 @@ tcf_hash_create(struct tc_st *parm, struct rtattr *est, struct tc_action *a, int
static inline struct tcf_st * 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) tcf_hash_init(struct tc_st *parm, struct rtattr *est, struct tc_action *a, int size, int ovr, int bind)
{ {
struct tcf_st *p; struct tcf_st *p = tcf_hash_check (parm,a,ovr,bind);
p = tcf_hash_check (parm,a,ovr,bind);
if (NULL == p) { if (!p)
return tcf_hash_create(parm, est, a, size, ovr, bind); p = tcf_hash_create(parm, est, a, size, ovr, bind);
} return p;
} }
#endif #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