ipv6: Remove unused arguments for __ipv6_dev_get_saddr().
authorYOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
Thu, 16 Jul 2015 07:51:30 +0000 (16:51 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jul 2015 08:00:56 +0000 (01:00 -0700)
Signed-off-by: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c

index 4c9a0246ef48615a7522f06bf3b00483c5ef8995..32153c248959c1768810d8d86266f04174b0c025 100644 (file)
@@ -1360,8 +1360,6 @@ out:
 
 static int __ipv6_dev_get_saddr(struct net *net,
                                struct ipv6_saddr_dst *dst,
-                               unsigned int prefs,
-                               const struct in6_addr *saddr,
                                struct inet6_dev *idev,
                                struct ipv6_saddr_score *scores,
                                int hiscore_idx)
@@ -1485,13 +1483,13 @@ int ipv6_dev_get_saddr(struct net *net, const struct net_device *dst_dev,
 
        if (use_oif_addr) {
                if (idev)
-                       hiscore_idx = __ipv6_dev_get_saddr(net, &dst, prefs, saddr, idev, scores, hiscore_idx);
+                       hiscore_idx = __ipv6_dev_get_saddr(net, &dst, idev, scores, hiscore_idx);
        } else {
                for_each_netdev_rcu(net, dev) {
                        idev = __in6_dev_get(dev);
                        if (!idev)
                                continue;
-                       hiscore_idx = __ipv6_dev_get_saddr(net, &dst, prefs, saddr, idev, scores, hiscore_idx);
+                       hiscore_idx = __ipv6_dev_get_saddr(net, &dst, idev, scores, hiscore_idx);
                }
        }
        rcu_read_unlock();