summaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-11-04 20:48:41 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-04 15:13:18 -0500
commitc18450a52a10a5c4cea3dc426c40447a7152290f (patch)
tree0645bae0e54bcee91b9b051d0dbe1dd39610a0e2 /net/ipv4/udp.c
parentaa1f731e52807077e9e13a86c0cad12d442c8fd4 (diff)
downloadlinux-c18450a52a10a5c4cea3dc426c40447a7152290f.tar.gz
linux-c18450a52a10a5c4cea3dc426c40447a7152290f.tar.bz2
linux-c18450a52a10a5c4cea3dc426c40447a7152290f.zip
udp: remove else after return
else is unnecessary after return 0 in __udp4_lib_rcv() Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index cd0db5471bb5..cf0cece50b6c 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1777,14 +1777,14 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
if (ret > 0)
return -ret;
return 0;
- } else {
- if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST))
- return __udp4_lib_mcast_deliver(net, skb, uh,
- saddr, daddr, udptable);
-
- sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable);
}
+ if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST))
+ return __udp4_lib_mcast_deliver(net, skb, uh,
+ saddr, daddr, udptable);
+
+ sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable);
+
if (sk != NULL) {
int ret;