summaryrefslogtreecommitdiffstats
path: root/net/ipv4/igmp.c
diff options
context:
space:
mode:
authorluo penghao <luo.penghao@zte.com.cn>2021-11-11 10:18:09 +0100
committerDavid S. Miller <davem@davemloft.net>2021-11-14 13:20:44 +0100
commitef14102914f3f6a86d105e9fc2941d97de69c389 (patch)
treea9b94c56abfeb07c1d328a7880008396188dba3b /net/ipv4/igmp.c
parentMerge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert... (diff)
downloadlinux-ef14102914f3f6a86d105e9fc2941d97de69c389.tar.xz
linux-ef14102914f3f6a86d105e9fc2941d97de69c389.zip
ipv4: drop unused assignment
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv4/igmp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index d2e2b3d18c66..2ad3c7b42d6d 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;