summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6mr.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-14 08:21:16 +0200
committerDavid S. Miller <davem@davemloft.net>2008-04-14 08:21:16 +0200
commitcee8947338d46bccece54c752bf6cd4043035f05 (patch)
tree3f1e30d20e75e66ebb22f9612d9eb64f2e1a8c48 /net/ipv6/ip6mr.c
parent[NETNS][DCCPV6]: Make per-net socket lookup. (diff)
downloadlinux-cee8947338d46bccece54c752bf6cd4043035f05.tar.xz
linux-cee8947338d46bccece54c752bf6cd4043035f05.zip
[IPV6] MROUTE: Do not call ipv6_find_idev() directly.
Since NETDEV_REGISTER notifier chain is responsible for creating inet6_dev{}, we do not need to call ipv6_find_idev() directly here. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r--net/ipv6/ip6mr.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 94ede696da2a..6e2e3c957a31 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -435,7 +435,6 @@ static void reg_vif_setup(struct net_device *dev)
static struct net_device *ip6mr_reg_vif(void)
{
struct net_device *dev;
- struct inet6_dev *in_dev;
dev = alloc_netdev(sizeof(struct net_device_stats), "pim6reg",
reg_vif_setup);
@@ -449,10 +448,6 @@ static struct net_device *ip6mr_reg_vif(void)
}
dev->iflink = 0;
- in_dev = ipv6_find_idev(dev);
- if (!in_dev)
- goto failure;
-
if (dev_open(dev))
goto failure;