Skip to content

Commit

Permalink
staging/rtl8187se: Convert __list_for_each use to list_for_each
Browse files Browse the repository at this point in the history
Also remove commented out list manipulation

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dave Jones authored and Greg Kroah-Hartman committed Jun 18, 2013
1 parent d935217 commit cbe97c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8187se/ieee80211/ieee80211_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cbe97c4

Please sign in to comment.