summaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2014-12-02 20:00:36 +0300
committerDavid S. Miller <davem@davemloft.net>2014-12-09 04:53:41 +0300
commit18b5427ae1654803930b97590ac5a85245861646 (patch)
treec3c958fa73d5dfd06ebd68b7d743bb5823fa47f7 /net/sched
parent2f8a2965da8f06800c8103643b05e0a7e5e6a898 (diff)
downloadlinux-18b5427ae1654803930b97590ac5a85245861646.tar.xz
net_sched: cls_cgroup: remove unnecessary if
since head->handle == handle (checked before), just assign handle. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/cls_cgroup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c
index d61a801222c1..dbee65e26b3e 100644
--- a/net/sched/cls_cgroup.c
+++ b/net/sched/cls_cgroup.c
@@ -117,11 +117,7 @@ static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb,
return -ENOBUFS;
tcf_exts_init(&new->exts, TCA_CGROUP_ACT, TCA_CGROUP_POLICE);
- if (head)
- new->handle = head->handle;
- else
- new->handle = handle;
-
+ new->handle = handle;
new->tp = tp;
err = nla_parse_nested(tb, TCA_CGROUP_MAX, tca[TCA_OPTIONS],
cgroup_policy);