[UDP]: ipv4 whitespace cleanup
Fix whitespace around keywords. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a2a316fd06
commit
6516c65573
1 changed files with 51 additions and 50 deletions
|
@ -175,7 +175,8 @@ int __udp_lib_get_port(struct sock *sk, unsigned short snum,
|
|||
;
|
||||
}
|
||||
result = best;
|
||||
for(i = 0; i < (1 << 16) / UDP_HTABLE_SIZE; i++, result += UDP_HTABLE_SIZE) {
|
||||
for (i = 0; i < (1 << 16) / UDP_HTABLE_SIZE;
|
||||
i++, result += UDP_HTABLE_SIZE) {
|
||||
if (result > sysctl_local_port_range[1])
|
||||
result = sysctl_local_port_range[0]
|
||||
+ ((result - sysctl_local_port_range[0]) &
|
||||
|
@ -765,8 +766,7 @@ int udp_sendpage(struct sock *sk, struct page *page, int offset,
|
|||
|
||||
int udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
||||
{
|
||||
switch(cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case SIOCOUTQ:
|
||||
{
|
||||
int amount = atomic_read(&sk->sk_wmem_alloc);
|
||||
|
@ -796,7 +796,8 @@ int udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
|||
default:
|
||||
return -ENOIOCTLCMD;
|
||||
}
|
||||
return(0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1264,7 +1265,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[],
|
|||
* don't wanna listen. Ignore it.
|
||||
*/
|
||||
kfree_skb(skb);
|
||||
return(0);
|
||||
return 0;
|
||||
|
||||
short_packet:
|
||||
LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: short packet: From %u.%u.%u.%u:%u %d/%d to %u.%u.%u.%u:%u\n",
|
||||
|
@ -1292,7 +1293,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[],
|
|||
drop:
|
||||
UDP_INC_STATS_BH(UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE);
|
||||
kfree_skb(skb);
|
||||
return(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
__inline__ int udp_rcv(struct sk_buff *skb)
|
||||
|
@ -1379,7 +1380,7 @@ int udp_lib_setsockopt(struct sock *sk, int level, int optname,
|
|||
default:
|
||||
err = -ENOPROTOOPT;
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
@ -1439,7 +1440,7 @@ int udp_lib_getsockopt(struct sock *sk, int level, int optname,
|
|||
|
||||
default:
|
||||
return -ENOPROTOOPT;
|
||||
};
|
||||
}
|
||||
|
||||
if (put_user(len, optlen))
|
||||
return -EFAULT;
|
||||
|
|
Loading…
Add table
Reference in a new issue