From: luo penghao Date: Thu, 11 Nov 2021 09:18:09 +0000 (+0000) Subject: ipv4: drop unused assignment X-Git-Tag: v5.17-rc1~170^2~459 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef14102914f3f6a86d105e9fc2941d97de69c389;p=thirdparty%2Flinux.git ipv4: drop unused assignment The assignment in the if statement will be overwritten by the following statement Reported-by: Zeal Robot Signed-off-by: luo penghao Signed-off-by: David S. Miller --- diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index d2e2b3d18c668..2ad3c7b42d6d2 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;