提交 bc3ef660 编写于 作者: S stephen hemminger 提交者: David S. Miller

ipv6: fib6_ifdown cleanup

Remove (unnecessary) casts to make code cleaner.
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b4aa9e05
......@@ -2009,11 +2009,11 @@ struct arg_dev_net {
static int fib6_ifdown(struct rt6_info *rt, void *arg)
{
struct net_device *dev = ((struct arg_dev_net *)arg)->dev;
struct net *net = ((struct arg_dev_net *)arg)->net;
const struct arg_dev_net *adn = arg;
const struct net_device *dev = adn->dev;
if (((void *)rt->rt6i_dev == dev || dev == NULL) &&
rt != net->ipv6.ip6_null_entry) {
if ((rt->rt6i_dev == dev || dev == NULL) &&
rt != adn->net->ipv6.ip6_null_entry) {
RT6_TRACE("deleted by ifdown %p\n", rt);
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册