Skip to content

Commit

Permalink
[IPV4] UDP,UDPLITE: Sparse: {__udp4_lib,udp,udplite}_err() are of void.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
yoshfuji authored and davem330 committed Jan 28, 2008
1 parent 583c28e commit fc80be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void __udp4_lib_err(struct sk_buff *skb, u32 info, struct hlist_head udptable[])

void udp_err(struct sk_buff *skb, u32 info)
{
return __udp4_lib_err(skb, info, udp_hash);
__udp4_lib_err(skb, info, udp_hash);
}

/*
Expand Down
2 changes: 1 addition & 1 deletion net/ipv4/udplite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit fc80be8

Please sign in to comment.