Skip to content

Commit

Permalink
net: ping: fix the coding style
Browse files Browse the repository at this point in the history
The characters in a line should be no more than 80.

Signed-off-by: Changli Gao <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
xiaosuo authored and davem330 committed May 19, 2011
1 parent bb0cd2f commit 75e308c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions net/ipv4/ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ static struct sock *ping_v4_lookup(struct net *net, u32 saddr, u32 daddr,
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;
unsigned seq;
Expand Down Expand Up @@ -437,7 +438,8 @@ static int ping_getfrag(void *from, char * to,
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);

Expand Down Expand Up @@ -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;
++state->bucket) {
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))
continue;
Expand Down

0 comments on commit 75e308c

Please sign in to comment.