Commit a2f983f8 authored by Li RongQing's avatar Li RongQing Committed by David S. Miller

ipv4: remove the unnecessary variable in udp_mcast_next

Signed-off-by: default avatarLi RongQing <roy.qing.li@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a0077a9f
...@@ -600,19 +600,18 @@ static inline struct sock *udp_v4_mcast_next(struct net *net, struct sock *sk, ...@@ -600,19 +600,18 @@ static inline struct sock *udp_v4_mcast_next(struct net *net, struct sock *sk,
int dif) int dif)
{ {
struct hlist_nulls_node *node; struct hlist_nulls_node *node;
struct sock *s = sk;
unsigned short hnum = ntohs(loc_port); unsigned short hnum = ntohs(loc_port);
sk_nulls_for_each_from(s, node) { sk_nulls_for_each_from(sk, node) {
if (__udp_is_mcast_sock(net, s, if (__udp_is_mcast_sock(net, sk,
loc_port, loc_addr, loc_port, loc_addr,
rmt_port, rmt_addr, rmt_port, rmt_addr,
dif, hnum)) dif, hnum))
goto found; goto found;
} }
s = NULL; sk = NULL;
found: found:
return s; return sk;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment