aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2010-12-16 12:42:40 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-19 01:01:16 -0500
commitbc3ef6605ea325e41b586a76aadc3f731c317504 (patch)
tree14d830a3513842eb693dbaa2101d2ed2ce80688f /net/ipv6/route.c
parentb4aa9e05a61b845541fa6f5b1d246976922601f0 (diff)
ipv6: fib6_ifdown cleanup
Remove (unnecessary) casts to make code cleaner. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index d5c3b45d829e..373bd0416f69 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2009,11 +2009,11 @@ struct arg_dev_net {
2009 2009
2010static int fib6_ifdown(struct rt6_info *rt, void *arg) 2010static int fib6_ifdown(struct rt6_info *rt, void *arg)
2011{ 2011{
2012 struct net_device *dev = ((struct arg_dev_net *)arg)->dev; 2012 const struct arg_dev_net *adn = arg;
2013 struct net *net = ((struct arg_dev_net *)arg)->net; 2013 const struct net_device *dev = adn->dev;
2014 2014
2015 if (((void *)rt->rt6i_dev == dev || dev == NULL) && 2015 if ((rt->rt6i_dev == dev || dev == NULL) &&
2016 rt != net->ipv6.ip6_null_entry) { 2016 rt != adn->net->ipv6.ip6_null_entry) {
2017 RT6_TRACE("deleted by ifdown %p\n", rt); 2017 RT6_TRACE("deleted by ifdown %p\n", rt);
2018 return -1; 2018 return -1;
2019 } 2019 }