summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorJamal Hadi Salim <jhs@mojatatu.com>2013-12-23 14:02:12 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-06 22:46:32 +0100
commit63acd6807c50bfb6a526713c640076ae2226c12a (patch)
tree850fdfff2c18c165c8cb6d7fd4b750074d5fc967 /net/sched/cls_api.c
parentbridge: use DEVICE_ATTR_xx macros (diff)
downloadlinux-63acd6807c50bfb6a526713c640076ae2226c12a.tar.xz
linux-63acd6807c50bfb6a526713c640076ae2226c12a.zip
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>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r--net/sched/cls_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 12e882ef596b..d8c42b1b88e5 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -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;