aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ping.c
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2011-05-18 17:16:01 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-19 16:17:51 -0400
commit75e308c894c4a5e47c005b8e821ae5f539ad2ef3 (patch)
tree2bd8e3e35f42854fc49a34282c7c83b280c63840 /net/ipv4/ping.c
parentbb0cd2fb539c4e454ed32e32194acc03b75753f3 (diff)
net: ping: fix the coding style
The characters in a line should be no more than 80. Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ping.c')
-rw-r--r--net/ipv4/ping.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
index 5f9e2d1ea4df..1f3bb11490c9 100644
--- a/net/ipv4/ping.c
+++ b/net/ipv4/ping.c
@@ -187,7 +187,8 @@ exit:
187 return sk; 187 return sk;
188} 188}
189 189
190static void inet_get_ping_group_range_net(struct net *net, gid_t *low, gid_t *high) 190static void inet_get_ping_group_range_net(struct net *net, gid_t *low,
191 gid_t *high)
191{ 192{
192 gid_t *data = net->ipv4.sysctl_ping_group_range; 193 gid_t *data = net->ipv4.sysctl_ping_group_range;
193 unsigned seq; 194 unsigned seq;
@@ -437,7 +438,8 @@ static int ping_getfrag(void *from, char * to,
437 return 0; 438 return 0;
438} 439}
439 440
440static int ping_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh, struct flowi4 *fl4) 441static int ping_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh,
442 struct flowi4 *fl4)
441{ 443{
442 struct sk_buff *skb = skb_peek(&sk->sk_write_queue); 444 struct sk_buff *skb = skb_peek(&sk->sk_write_queue);
443 445
@@ -754,7 +756,9 @@ static struct sock *ping_get_first(struct seq_file *seq, int start)
754 for (state->bucket = start; state->bucket < PING_HTABLE_SIZE; 756 for (state->bucket = start; state->bucket < PING_HTABLE_SIZE;
755 ++state->bucket) { 757 ++state->bucket) {
756 struct hlist_nulls_node *node; 758 struct hlist_nulls_node *node;
757 struct hlist_nulls_head *hslot = &ping_table.hash[state->bucket]; 759 struct hlist_nulls_head *hslot;
760
761 hslot = &ping_table.hash[state->bucket];
758 762
759 if (hlist_nulls_empty(hslot)) 763 if (hlist_nulls_empty(hslot))
760 continue; 764 continue;