diff options
Diffstat (limited to 'net/ipv6/ip6mr.c')
| -rw-r--r-- | net/ipv6/ip6mr.c | 5 | 
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) | |||
| 435 | static struct net_device *ip6mr_reg_vif(void) | 435 | static struct net_device *ip6mr_reg_vif(void) | 
| 436 | { | 436 | { | 
| 437 | struct net_device *dev; | 437 | struct net_device *dev; | 
| 438 | struct inet6_dev *in_dev; | ||
| 439 | 438 | ||
| 440 | dev = alloc_netdev(sizeof(struct net_device_stats), "pim6reg", | 439 | dev = alloc_netdev(sizeof(struct net_device_stats), "pim6reg", | 
| 441 | reg_vif_setup); | 440 | reg_vif_setup); | 
| @@ -449,10 +448,6 @@ static struct net_device *ip6mr_reg_vif(void) | |||
| 449 | } | 448 | } | 
| 450 | dev->iflink = 0; | 449 | dev->iflink = 0; | 
| 451 | 450 | ||
| 452 | in_dev = ipv6_find_idev(dev); | ||
| 453 | if (!in_dev) | ||
| 454 | goto failure; | ||
| 455 | |||
| 456 | if (dev_open(dev)) | 451 | if (dev_open(dev)) | 
| 457 | goto failure; | 452 | goto failure; | 
| 458 | 453 | ||
