summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
diff options
context:
space:
mode:
authorDave Jones2013-06-18 04:26:40 +0200
committerGreg Kroah-Hartman2013-06-18 20:22:58 +0200
commit0c2935925280c2fa765f297dc47865d0e1707f42 (patch)
tree1152bdb05fdd80f5b39da6c86a2f0df89d0854b3 /drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
parentstaging/rtl8187se: Convert __list_for_each use to list_for_each (diff)
downloadkernel-qcow2-linux-0c2935925280c2fa765f297dc47865d0e1707f42.tar.gz
kernel-qcow2-linux-0c2935925280c2fa765f297dc47865d0e1707f42.tar.xz
kernel-qcow2-linux-0c2935925280c2fa765f297dc47865d0e1707f42.zip
staging/rtl8192u: remove commented out __list_for_each usage
Also remove another commented out open-coded list manipulation while we're there. Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c')
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
index 52936a6b9db3..a6b18409103b 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
@@ -454,8 +454,7 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,
struct ieee_ibss_seq *entry = NULL;
u8 *mac = header->addr2;
int index = mac[5] % IEEE_IBSS_MAC_HASH_SIZE;
- //for (pos = (head)->next; pos != (head); pos = pos->next)
- //__list_for_each(p, &ieee->ibss_mac_hash[index]) {
+
list_for_each(p, &ieee->ibss_mac_hash[index]) {
entry = list_entry(p, struct ieee_ibss_seq, list);
if (!memcmp(entry->mac, mac, ETH_ALEN))