udp: remove else after return
authorFabian Frederick <fabf@skynet.be>
Tue, 4 Nov 2014 19:48:41 +0000 (20:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2014 20:13:18 +0000 (15:13 -0500)
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>
net/ipv4/udp.c

index cd0db5471bb5eb6048208404aab71253867e1eec..cf0cece50b6c70b469fedbd70939df5d77a0b972 100644 (file)
@@ -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;