ANDROID: net: ipv6: remove unused variable ifindex in

Remove unused variable "ifindex" in rt6_get_route_info().
"ifindex" is not used anymore, dev->ifindex is used directly instead.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
This commit is contained in:
Amit Pundir
2017-02-02 15:00:09 +05:30
parent 8aab20cfdc
commit be65fb01da

View File

@ -2341,7 +2341,6 @@ static struct rt6_info *rt6_get_route_info(struct net *net,
struct net_device *dev)
{
u32 tb_id = l3mdev_fib_table(dev) ? : addrconf_rt_table(dev, RT6_TABLE_INFO);
int ifindex = dev->ifindex;
struct fib6_node *fn;
struct rt6_info *rt = NULL;
struct fib6_table *table;