]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
igmp: remove unnecessary in_device member zeroing
authorShawn Bohrer <sbohrer@rgmadvisors.com>
Fri, 7 Jun 2013 17:34:43 +0000 (12:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 07:41:15 +0000 (00:41 -0700)
ip_mc_init_dev() is passed a freshly kzalloc'd in_device so it is
unnecessary to explicitly zero out the members.

Signed-off-by: Shawn Bohrer <sbohrer@rgmadvisors.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c

index f72011df9c5927ca0308bfa5c8c00d690558bdea..a09190ddffba668bae1a3c4a4cb65f6d0ceb17e5 100644 (file)
@@ -1435,13 +1435,9 @@ void ip_mc_init_dev(struct in_device *in_dev)
 {
        ASSERT_RTNL();
 
-       in_dev->mc_tomb = NULL;
 #ifdef CONFIG_IP_MULTICAST
-       in_dev->mr_gq_running = 0;
        setup_timer(&in_dev->mr_gq_timer, igmp_gq_timer_expire,
                        (unsigned long)in_dev);
-       in_dev->mr_ifc_count = 0;
-       in_dev->mc_count     = 0;
        setup_timer(&in_dev->mr_ifc_timer, igmp_ifc_timer_expire,
                        (unsigned long)in_dev);
        in_dev->mr_qrv = IGMP_Unsolicited_Report_Count;