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>
This commit is contained in:
parent
aa1f731e52
commit
c18450a52a
|
@ -1777,13 +1777,13 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
|
||||||
if (ret > 0)
|
if (ret > 0)
|
||||||
return -ret;
|
return -ret;
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST))
|
if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST))
|
||||||
return __udp4_lib_mcast_deliver(net, skb, uh,
|
return __udp4_lib_mcast_deliver(net, skb, uh,
|
||||||
saddr, daddr, udptable);
|
saddr, daddr, udptable);
|
||||||
|
|
||||||
sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable);
|
sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable);
|
||||||
}
|
|
||||||
|
|
||||||
if (sk != NULL) {
|
if (sk != NULL) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
Loading…
Reference in New Issue