staging/rtl8187se: Convert __list_for_each use to list_for_each
authorDave Jones <davej@redhat.com>
Tue, 18 Jun 2013 02:26:46 +0000 (22:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2013 18:22:58 +0000 (11:22 -0700)
Also remove commented out list manipulation

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/ieee80211/ieee80211_rx.c

index e30315997bbe522835e89beb7299529d2b9d4830..d5df0d691fcc0d4f9432ca37a2c97efe20c324c5 100644 (file)
@@ -399,8 +399,8 @@ 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))
                                break;