staging/rtl8187se: Convert __list_for_each use to list_for_each
Also remove commented out list manipulation Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d935217df1
commit
cbe97c4593
1 changed files with 2 additions and 2 deletions
|
@ -399,8 +399,8 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,
|
||||||
struct ieee_ibss_seq *entry = NULL;
|
struct ieee_ibss_seq *entry = NULL;
|
||||||
u8 *mac = header->addr2;
|
u8 *mac = header->addr2;
|
||||||
int index = mac[5] % IEEE_IBSS_MAC_HASH_SIZE;
|
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);
|
entry = list_entry(p, struct ieee_ibss_seq, list);
|
||||||
if (!memcmp(entry->mac, mac, ETH_ALEN))
|
if (!memcmp(entry->mac, mac, ETH_ALEN))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue