From: Gerrit Renker Date: Tue, 21 Jul 2009 18:13:25 +0000 (-0700) Subject: mcastv6: Local variable shadows function argument X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c2b8d180a47d041e9101ead27e49d237df0f1d1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mcastv6: Local variable shadows function argument 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 Acked-by: David L Stevens Signed-off-by: David S. Miller --- diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 4b264ed40a8c..71c3dacec1ed 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c @@ -2107,7 +2107,6 @@ static int ip6_mc_add_src(struct inet6_dev *idev, struct in6_addr *pmca, for (j=0; jmca_sfcount[MCAST_EXCLUDE] != 0)) { - struct inet6_dev *idev = pmc->idev; struct ip6_sf_list *psf; /* filter mode change */