Commit 132adf54 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

[IPV4]: cleanup



Add whitespace around keywords.

Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ac58ee3
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -353,8 +353,7 @@ static inline void tnode_free(struct tnode *tn)
	if (IS_LEAF(tn)) {
		struct leaf *l = (struct leaf *) tn;
		call_rcu_bh(&l->rcu, __leaf_free_rcu);
	}
	else
	} else
		call_rcu(&tn->rcu, __tnode_free_rcu);
}

+563 −564
Original line number Diff line number Diff line
@@ -958,8 +958,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
		return -EOPNOTSUPP;

#ifdef CONFIG_IP_MROUTE
	if(optname>=MRT_BASE && optname <=MRT_BASE+10)
	{
	if (optname >= MRT_BASE && optname <= MRT_BASE+10) {
		return ip_mroute_getsockopt(sk,optname,optval,optlen);
	}
#endif
+151 −154
Original line number Diff line number Diff line
@@ -858,14 +858,12 @@ int ip_mroute_setsockopt(struct sock *sk,int optname,char __user *optval,int opt
	struct vifctl vif;
	struct mfcctl mfc;

	if(optname!=MRT_INIT)
	{
	if (optname != MRT_INIT) {
		if (sk != mroute_socket && !capable(CAP_NET_ADMIN))
			return -EACCES;
	}

	switch(optname)
	{
	switch (optname) {
	case MRT_INIT:
		if (sk->sk_type != SOCK_RAW ||
		    inet_sk(sk)->num != IPPROTO_IGMP)
@@ -1023,8 +1021,7 @@ int ipmr_ioctl(struct sock *sk, int cmd, void __user *arg)
	struct vif_device *vif;
	struct mfc_cache *c;

	switch(cmd)
	{
	switch (cmd) {
	case SIOCGETVIFCNT:
		if (copy_from_user(&vr,arg,sizeof(vr)))
			return -EFAULT;
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+13 −13

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

Loading