diff options
author | Wolfram Sang | 2016-05-31 12:56:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-06-08 07:42:53 +0200 |
commit | 72bf750007297c33fe2331d2125118d4885367c2 (patch) | |
tree | 6f5fc51bfa676e76e52d7426a601b8a87eb01d42 /drivers/staging/ks7010/ks_hostif.c | |
parent | staging: ks7010: remove checks for WIRELESS_EXT version (diff) | |
download | kernel-qcow2-linux-72bf750007297c33fe2331d2125118d4885367c2.tar.gz kernel-qcow2-linux-72bf750007297c33fe2331d2125118d4885367c2.tar.xz kernel-qcow2-linux-72bf750007297c33fe2331d2125118d4885367c2.zip |
staging: ks7010: remove code for old kernel versions
No need to be backwards compatible.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010/ks_hostif.c')
-rw-r--r-- | drivers/staging/ks7010/ks_hostif.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 6bea699655ee..146a1357909b 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -2103,11 +2103,7 @@ void hostif_sme_multicast_set(ks_wlan_private *priv) struct net_device *dev = priv->net_dev; int mc_count; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) struct netdev_hw_addr *ha; -#else - struct dev_mc_list *mclist; -#endif char set_address[NIC_MAX_MCAST_LIST*ETH_ALEN]; unsigned long filter_type; int i; @@ -2131,14 +2127,9 @@ void hostif_sme_multicast_set(ks_wlan_private *priv) else { if (priv->sme_i.sme_flag & SME_MULTICAST){ mc_count = netdev_mc_count(dev); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) netdev_for_each_mc_addr(ha, dev) { memcpy(&set_address[i*ETH_ALEN], ha->addr, ETH_ALEN); } -#else - for (i = 0, mclist = dev->mc_list; mclist && i < mc_count; i++, mclist = mclist->next) - memcpy(&set_address[i*ETH_ALEN], mclist->dmi_addr, ETH_ALEN); -#endif priv->sme_i.sme_flag &= ~SME_MULTICAST; hostif_mib_set_request(priv, LOCAL_MULTICAST_ADDRESS, (ETH_ALEN*mc_count), MIB_VALUE_TYPE_OSTRING, &set_address[0]); |