Skip to content

Commit 9d124f0

Browse files
Gavrilov Iliaopsiff
authored andcommitted
ipv6: mcast: Remove redundant comparison in igmp6_mcf_get_next()
mainline inclusion from mainline-v6.7-rc1 category: bugfix The 'state->im' value will always be non-zero after the 'while' statement, so the check can be removed. Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 1da177e ("Linux-2.6.12-rc2") Signed-off-by: Gavrilov Ilia <Ilia.Gavrilov@infotecs.ru> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/r/20230912084100.1502379-1-Ilia.Gavrilov@infotecs.ru Signed-off-by: Paolo Abeni <pabeni@redhat.com> (cherry picked from commit 59bb1d6) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 5d8af03 commit 9d124f0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

net/ipv6/mcast.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,8 +3017,6 @@ static struct ip6_sf_list *igmp6_mcf_get_next(struct seq_file *seq, struct ip6_s
30173017
continue;
30183018
state->im = rcu_dereference(state->idev->mc_list);
30193019
}
3020-
if (!state->im)
3021-
break;
30223020
psf = rcu_dereference(state->im->mca_sources);
30233021
}
30243022
out:

0 commit comments

Comments
 (0)