summaryrefslogtreecommitdiff
path: root/net/ipv4/igmp.c
diff options
context:
space:
mode:
authorluo penghao <luo.penghao@zte.com.cn>2021-11-11 09:18:09 +0000
committerDavid S. Miller <davem@davemloft.net>2021-11-14 12:20:44 +0000
commitef14102914f3f6a86d105e9fc2941d97de69c389 (patch)
treea9b94c56abfeb07c1d328a7880008396188dba3b /net/ipv4/igmp.c
parent66f4beaa6c1d28161f534471484b2daa2de1dce0 (diff)
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 'net/ipv4/igmp.c')
-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;