projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f8a296
)
net_sched: cls_cgroup: remove unnecessary if
author
Jiri Pirko
<
[email protected]
>
Tue, 2 Dec 2014 17:00:36 +0000
(18:00 +0100)
committer
David S. Miller
<
[email protected]
>
Tue, 9 Dec 2014 01:53:41 +0000
(20:53 -0500)
since head->handle == handle (checked before), just assign handle.
Signed-off-by: Jiri Pirko <
[email protected]
>
Acked-by: Jamal Hadi Salim <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/cls_cgroup.c
patch
|
blob
|
history
diff --git
a/net/sched/cls_cgroup.c
b/net/sched/cls_cgroup.c
index d61a801222c10205e339a5d9d622b4ecce804ed4..dbee65e26b3ed44e000f884234de302c14c65bb0 100644
(file)
--- 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);