Commit 75e308c8 authored by Changli Gao's avatar Changli Gao Committed by David S. Miller

net: ping: fix the coding style

The characters in a line should be no more than 80.
Signed-off-by: default avatarChangli Gao <xiaosuo@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb0cd2fb
...@@ -187,7 +187,8 @@ static struct sock *ping_v4_lookup(struct net *net, u32 saddr, u32 daddr, ...@@ -187,7 +187,8 @@ static struct sock *ping_v4_lookup(struct net *net, u32 saddr, u32 daddr,
return sk; return sk;
} }
static void inet_get_ping_group_range_net(struct net *net, gid_t *low, gid_t *high) static void inet_get_ping_group_range_net(struct net *net, gid_t *low,
gid_t *high)
{ {
gid_t *data = net->ipv4.sysctl_ping_group_range; gid_t *data = net->ipv4.sysctl_ping_group_range;
unsigned seq; unsigned seq;
...@@ -437,7 +438,8 @@ static int ping_getfrag(void *from, char * to, ...@@ -437,7 +438,8 @@ static int ping_getfrag(void *from, char * to,
return 0; return 0;
} }
static int ping_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh, struct flowi4 *fl4) static int ping_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh,
struct flowi4 *fl4)
{ {
struct sk_buff *skb = skb_peek(&sk->sk_write_queue); struct sk_buff *skb = skb_peek(&sk->sk_write_queue);
...@@ -754,7 +756,9 @@ static struct sock *ping_get_first(struct seq_file *seq, int start) ...@@ -754,7 +756,9 @@ static struct sock *ping_get_first(struct seq_file *seq, int start)
for (state->bucket = start; state->bucket < PING_HTABLE_SIZE; for (state->bucket = start; state->bucket < PING_HTABLE_SIZE;
++state->bucket) { ++state->bucket) {
struct hlist_nulls_node *node; struct hlist_nulls_node *node;
struct hlist_nulls_head *hslot = &ping_table.hash[state->bucket]; struct hlist_nulls_head *hslot;
hslot = &ping_table.hash[state->bucket];
if (hlist_nulls_empty(hslot)) if (hlist_nulls_empty(hslot))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment