aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-01-22 03:09:55 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:10:25 -0500
commit77d0d350e96c9453be255d8eff8dc97555710b17 (patch)
treeaf9c7bce950469d4b946cfc3663fe60cf3227442 /net/ipv6
parentfc80be87dca8968fa087aae81544ba3f86afdd50 (diff)
[IPV6] UDP,UDPLITE: Sparse: {__udp6_lib,udp,udplite}_err() are of void.
Fix following sparse warnings: | net/ipv6/udp.c:262:2: warning: returning void-valued expression | net/ipv6/udplite.c:29:2: warning: returning void-valued expression Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/udp.c2
-rw-r--r--net/ipv6/udplite.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index bf58acab2064..bd4b9df8f614 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -259,7 +259,7 @@ static __inline__ void udpv6_err(struct sk_buff *skb,
259 struct inet6_skb_parm *opt, int type, 259 struct inet6_skb_parm *opt, int type,
260 int code, int offset, __be32 info ) 260 int code, int offset, __be32 info )
261{ 261{
262 return __udp6_lib_err(skb, opt, type, code, offset, info, udp_hash); 262 __udp6_lib_err(skb, opt, type, code, offset, info, udp_hash);
263} 263}
264 264
265int udpv6_queue_rcv_skb(struct sock * sk, struct sk_buff *skb) 265int udpv6_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
diff --git a/net/ipv6/udplite.c b/net/ipv6/udplite.c
index 39f070518e68..87d4202522ee 100644
--- a/net/ipv6/udplite.c
+++ b/net/ipv6/udplite.c
@@ -26,7 +26,7 @@ static void udplitev6_err(struct sk_buff *skb,
26 struct inet6_skb_parm *opt, 26 struct inet6_skb_parm *opt,
27 int type, int code, int offset, __be32 info) 27 int type, int code, int offset, __be32 info)
28{ 28{
29 return __udp6_lib_err(skb, opt, type, code, offset, info, udplite_hash); 29 __udp6_lib_err(skb, opt, type, code, offset, info, udplite_hash);
30} 30}
31 31
32static struct inet6_protocol udplitev6_protocol = { 32static struct inet6_protocol udplitev6_protocol = {