[IPV4] UDP,UDPLITE: Sparse: {__udp4_lib,udp,udplite}_err() are of void.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 22 Jan 2008 08:05:31 +0000 (17:05 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:24 +0000 (15:10 -0800)
Fix following sparse warnings:
| net/ipv4/udp.c:421:2: warning: returning void-valued expression
| net/ipv4/udplite.c:38:2: warning: returning void-valued expression

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv4/udp.c
net/ipv4/udplite.c

index cb2411cb87daccd7644fca5ba56e3362c46f2f8a..ecd9d91b30c62937ce90ff22fe1e16139daf11bd 100644 (file)
@@ -418,7 +418,7 @@ out:
 
 void udp_err(struct sk_buff *skb, u32 info)
 {
-       return __udp4_lib_err(skb, info, udp_hash);
+       __udp4_lib_err(skb, info, udp_hash);
 }
 
 /*
index f5baeb3e8b85d368e075cd57ca7cd8c48b68702b..001b881ca36fa5e543bcac52fed1b43f36013068 100644 (file)
@@ -35,7 +35,7 @@ static int udplite_rcv(struct sk_buff *skb)
 
 static void udplite_err(struct sk_buff *skb, u32 info)
 {
-       return __udp4_lib_err(skb, info, udplite_hash);
+       __udp4_lib_err(skb, info, udplite_hash);
 }
 
 static struct net_protocol udplite_protocol = {