net_sched: Remove unnecessary checks for act->ops
Remove unnecessary checks for act->ops (suggested by Eric Dumazet). Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

zatwierdzone przez
David S. Miller

rodzic
fbf2671bb8
commit
63acd6807c
@@ -577,7 +577,7 @@ int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts)
|
||||
} else if (exts->police) {
|
||||
struct tc_action *act = tcf_exts_first_act(exts);
|
||||
nest = nla_nest_start(skb, exts->police);
|
||||
if (nest == NULL)
|
||||
if (nest == NULL || !act)
|
||||
goto nla_put_failure;
|
||||
if (tcf_action_dump_old(skb, act, 0, 0) < 0)
|
||||
goto nla_put_failure;
|
||||
|
Reference in New Issue
Block a user