diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-01-22 03:05:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:24 -0500 |
commit | fc80be87dca8968fa087aae81544ba3f86afdd50 (patch) | |
tree | 60f62aeb95c5e8fbd1eb956166b0e53c058e553a /net | |
parent | 583c28e5645c464b57b4f5d3d53113c06bb0ac5f (diff) |
[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 <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/udp.c | 2 | ||||
-rw-r--r-- | net/ipv4/udplite.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index cb2411cb87da..ecd9d91b30c6 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -418,7 +418,7 @@ out: | |||
418 | 418 | ||
419 | void udp_err(struct sk_buff *skb, u32 info) | 419 | void udp_err(struct sk_buff *skb, u32 info) |
420 | { | 420 | { |
421 | return __udp4_lib_err(skb, info, udp_hash); | 421 | __udp4_lib_err(skb, info, udp_hash); |
422 | } | 422 | } |
423 | 423 | ||
424 | /* | 424 | /* |
diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c index f5baeb3e8b85..001b881ca36f 100644 --- a/net/ipv4/udplite.c +++ b/net/ipv4/udplite.c | |||
@@ -35,7 +35,7 @@ static int udplite_rcv(struct sk_buff *skb) | |||
35 | 35 | ||
36 | static void udplite_err(struct sk_buff *skb, u32 info) | 36 | static void udplite_err(struct sk_buff *skb, u32 info) |
37 | { | 37 | { |
38 | return __udp4_lib_err(skb, info, udplite_hash); | 38 | __udp4_lib_err(skb, info, udplite_hash); |
39 | } | 39 | } |
40 | 40 | ||
41 | static struct net_protocol udplite_protocol = { | 41 | static struct net_protocol udplite_protocol = { |