Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18b5427a authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

net_sched: cls_cgroup: remove unnecessary if



since head->handle == handle (checked before), just assign handle.

Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2f8a2965
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -117,11 +117,7 @@ static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb,
		return -ENOBUFS;
		return -ENOBUFS;


	tcf_exts_init(&new->exts, TCA_CGROUP_ACT, TCA_CGROUP_POLICE);
	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;
	new->tp = tp;
	err = nla_parse_nested(tb, TCA_CGROUP_MAX, tca[TCA_OPTIONS],
	err = nla_parse_nested(tb, TCA_CGROUP_MAX, tca[TCA_OPTIONS],
			       cgroup_policy);
			       cgroup_policy);