mcastv6: Local variable shadows function argument
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Tue, 21 Jul 2009 18:13:25 +0000 (11:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2009 18:13:25 +0000 (11:13 -0700)
The local variable 'idev' shadows the function argument 'idev' to
ip6_mc_add_src(). Fixed by removing the local declaration, as pmc->idev
should be identical with 'idev' passed as argument.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c

index 4b264ed40a8c350bdeffb36971e9ca2a8258f7bb..71c3dacec1ed008c7f291e4aef0b7e6d55fe1c5e 100644 (file)
@@ -2107,7 +2107,6 @@ static int ip6_mc_add_src(struct inet6_dev *idev, struct in6_addr *pmca,
                for (j=0; j<i; j++)
                        (void) ip6_mc_del1_src(pmc, sfmode, &psfsrc[i]);
        } else if (isexclude != (pmc->mca_sfcount[MCAST_EXCLUDE] != 0)) {
-               struct inet6_dev *idev = pmc->idev;
                struct ip6_sf_list *psf;
 
                /* filter mode change */