]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: ks7010: really iterate over multicast addresses
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 31 May 2016 10:56:22 +0000 (12:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:42:53 +0000 (22:42 -0700)
The loop variable was defined but not really used. Fix this.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c

index 367d487cef1ba88b381c8166512f061a28797fb3..b0a0a53d3a00bf02f12b7e5267dcb5e9049283dd 100644 (file)
@@ -2105,7 +2105,7 @@ void hostif_sme_multicast_set(ks_wlan_private *priv)
        struct netdev_hw_addr *ha;
        char    set_address[NIC_MAX_MCAST_LIST*ETH_ALEN];
        unsigned long filter_type;
-       int i;
+       int i = 0;
 
        DPRINTK(3,"\n");
 
@@ -2128,6 +2128,7 @@ void hostif_sme_multicast_set(ks_wlan_private *priv)
                        mc_count = netdev_mc_count(dev);
                        netdev_for_each_mc_addr(ha, dev) {
                                memcpy(&set_address[i*ETH_ALEN], ha->addr, ETH_ALEN);
+                               i++;
                        }
                        priv->sme_i.sme_flag &= ~SME_MULTICAST;
                        hostif_mib_set_request(priv, LOCAL_MULTICAST_ADDRESS,