Commit bc3ef660 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

ipv6: fib6_ifdown cleanup

Remove (unnecessary) casts to make code cleaner.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4aa9e05
...@@ -2009,11 +2009,11 @@ struct arg_dev_net { ...@@ -2009,11 +2009,11 @@ struct arg_dev_net {
static int fib6_ifdown(struct rt6_info *rt, void *arg) static int fib6_ifdown(struct rt6_info *rt, void *arg)
{ {
struct net_device *dev = ((struct arg_dev_net *)arg)->dev; const struct arg_dev_net *adn = arg;
struct net *net = ((struct arg_dev_net *)arg)->net; const struct net_device *dev = adn->dev;
if (((void *)rt->rt6i_dev == dev || dev == NULL) && if ((rt->rt6i_dev == dev || dev == NULL) &&
rt != net->ipv6.ip6_null_entry) { rt != adn->net->ipv6.ip6_null_entry) {
RT6_TRACE("deleted by ifdown %p\n", rt); RT6_TRACE("deleted by ifdown %p\n", rt);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment