aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/udp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index d92f94b7e402..ac30e106a884 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -600,19 +600,18 @@ static inline struct sock *udp_v4_mcast_next(struct net *net, struct sock *sk,
600 int dif) 600 int dif)
601{ 601{
602 struct hlist_nulls_node *node; 602 struct hlist_nulls_node *node;
603 struct sock *s = sk;
604 unsigned short hnum = ntohs(loc_port); 603 unsigned short hnum = ntohs(loc_port);
605 604
606 sk_nulls_for_each_from(s, node) { 605 sk_nulls_for_each_from(sk, node) {
607 if (__udp_is_mcast_sock(net, s, 606 if (__udp_is_mcast_sock(net, sk,
608 loc_port, loc_addr, 607 loc_port, loc_addr,
609 rmt_port, rmt_addr, 608 rmt_port, rmt_addr,
610 dif, hnum)) 609 dif, hnum))
611 goto found; 610 goto found;
612 } 611 }
613 s = NULL; 612 sk = NULL;
614found: 613found:
615 return s; 614 return sk;
616} 615}
617 616
618/* 617/*