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

Commit 8865fdd4 authored by Alexander Aring's avatar Alexander Aring Committed by David S. Miller
Browse files

net: sched: cls: fix code style issues



This patch changes some code style issues pointed out by checkpatch
inside the TC cls subsystem.

Signed-off-by: default avatarAlexander Aring <aring@mojatatu.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fd5204cd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -240,7 +240,8 @@ struct tcf_proto_ops {
					struct tcf_proto*, unsigned long,
					u32 handle, struct nlattr **,
					void **, bool);
	int			(*delete)(struct tcf_proto*, void *, bool*);
	int			(*delete)(struct tcf_proto *tp, void *arg,
					  bool *last);
	void			(*walk)(struct tcf_proto*, struct tcf_walker *arg);
	void			(*bind_class)(void *, u32, unsigned long);

+4 −4
Original line number Diff line number Diff line
@@ -783,7 +783,7 @@ static int u32_set_parms(struct net *net, struct tcf_proto *tp,
		if (handle) {
			ht_down = u32_lookup_ht(ht->tp_c, handle);

			if (ht_down == NULL)
			if (!ht_down)
				return -EINVAL;
			ht_down->refcnt++;
		}
@@ -907,7 +907,7 @@ static int u32_change(struct net *net, struct sk_buff *in_skb,
	size_t size;
#endif

	if (opt == NULL)
	if (!opt)
		return handle ? -EINVAL : 0;

	err = nla_parse_nested(tb, TCA_U32_MAX, opt, u32_policy, NULL);
@@ -1011,7 +1011,7 @@ static int u32_change(struct net *net, struct sk_buff *in_skb,
			htid = ht->handle;
		} else {
			ht = u32_lookup_ht(tp->data, TC_U32_HTID(htid));
			if (ht == NULL)
			if (!ht)
				return -EINVAL;
		}
	} else {
+1 −1

File changed.

Contains only whitespace changes.