Skip to contentSkip to conversation

staging/rtl8192u: remove commented out __list_for_each usage

PATCH Applied Dave Jones 1 participant 1 message Jun 18, 2013 Staging

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

PATCH 3/7 staging/rtl8192u: remove commented out __list_for_each usage

Also remove another commented out open-coded list manipulation while we're there.

---
 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +1 -2
index ee7ce5f..8d0b6c5 100644
@@ -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))
Signature · 1 line
1.8.1.4