From: YOSHIFUJI Hideaki Date: Tue, 22 Jan 2008 08:05:31 +0000 (+0900) Subject: [IPV4] UDP,UDPLITE: Sparse: {__udp4_lib,udp,udplite}_err() are of void. X-Git-Tag: v2.6.25-rc1~1162^2~88 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fc80be87dca8968fa087aae81544ba3f86afdd50;p=linux-2.6-omap-h63xx.git [IPV4] UDP,UDPLITE: Sparse: {__udp4_lib,udp,udplite}_err() are of void. 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 --- diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index cb2411cb87d..ecd9d91b30c 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -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); } /* diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c index f5baeb3e8b8..001b881ca36 100644 --- a/net/ipv4/udplite.c +++ b/net/ipv4/udplite.c @@ -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 = {