Skip to content

Commit

Permalink
net/ipv6/icmp.c: Checkpatch cleanups
Browse files Browse the repository at this point in the history
icmp.c:501: ERROR: "(foo*)" should be "(foo *)"
icmp.c:582: ERROR: "(foo*)" should be "(foo *)"
icmp.c:954: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eldad Zack authored and David S. Miller committed Apr 2, 2012
1 parent 911c854 commit a2d91a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/ipv6/icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
err = ip6_append_data(sk, icmpv6_getfrag, &msg,
len + sizeof(struct icmp6hdr),
sizeof(struct icmp6hdr), hlimit,
np->tclass, NULL, &fl6, (struct rt6_info*)dst,
np->tclass, NULL, &fl6, (struct rt6_info *)dst,
MSG_DONTWAIT, np->dontfrag);
if (err) {
ICMP6_INC_STATS_BH(net, idev, ICMP6_MIB_OUTERRORS);
Expand Down Expand Up @@ -580,7 +580,7 @@ static void icmpv6_echo_reply(struct sk_buff *skb)

err = ip6_append_data(sk, icmpv6_getfrag, &msg, skb->len + sizeof(struct icmp6hdr),
sizeof(struct icmp6hdr), hlimit, np->tclass, NULL, &fl6,
(struct rt6_info*)dst, MSG_DONTWAIT,
(struct rt6_info *)dst, MSG_DONTWAIT,
np->dontfrag);

if (err) {
Expand Down Expand Up @@ -951,7 +951,6 @@ int icmpv6_err_convert(u8 type, u8 code, int *err)

return fatal;
}

EXPORT_SYMBOL(icmpv6_err_convert);

#ifdef CONFIG_SYSCTL
Expand Down

0 comments on commit a2d91a0

Please sign in to comment.