Message ID | 20211111091809.159707-1-luo.penghao@zte.com.cn (mailing list archive) |
---|---|
State | Accepted |
Commit | ef14102914f3f6a86d105e9fc2941d97de69c389 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [linux-next] ipv4: drop unused assignment | expand |
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Thu, 11 Nov 2021 09:18:09 +0000 you wrote: > From: luo penghao <luo.penghao@zte.com.cn> > > The assignment in the if statement will be overwritten by the > following statement > > Reported-by: Zeal Robot <zealci@zte.com.cn> > Signed-off-by: luo penghao <luo.penghao@zte.com.cn> > > [...] Here is the summary with links: - [linux-next] ipv4: drop unused assignment https://git.kernel.org/netdev/net-next/c/ef14102914f3 You are awesome, thank you!
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index d2e2b3d..2ad3c7b 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -2558,7 +2558,6 @@ int ip_mc_msfget(struct sock *sk, struct ip_msfilter *msf, msf->imsf_fmode = pmc->sfmode; psl = rtnl_dereference(pmc->sflist); if (!psl) { - len = 0; count = 0; } else { count = psl->sl_count;