Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[pandora-kernel.git] / drivers / net / ethernet / chelsio / cxgb4 / cxgb4_main.c
index 038df4b..79ac77c 100644 (file)
@@ -3982,7 +3982,6 @@ static int cxgb4_inet6addr_handler(struct notifier_block *this,
        struct inet6_ifaddr *ifa = data;
        struct net_device *event_dev;
        int ret = NOTIFY_DONE;
-       int cnt;
        struct bonding *bond = netdev_priv(ifa->idev->dev);
        struct slave *slave;
        struct pci_dev *first_pdev = NULL;
@@ -3996,7 +3995,7 @@ static int cxgb4_inet6addr_handler(struct notifier_block *this,
                 * in all of them only once.
                 */
                read_lock(&bond->lock);
-               bond_for_each_slave(bond, slave, cnt) {
+               bond_for_each_slave(bond, slave) {
                        if (!first_pdev) {
                                ret = clip_add(slave->dev, ifa, event);
                                /* If clip_add is success then only initialize