From: Dave Jones Date: Tue, 18 Jun 2013 02:26:40 +0000 (-0400) Subject: staging/rtl8192u: remove commented out __list_for_each usage X-Git-Tag: v3.11-rc1~158^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c2935925280c2fa765f297dc47865d0e1707f42;p=platform%2Fkernel%2Flinux-stable.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index 52936a6..a6b1840 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))