diff options
author | Andreas Fenkart <andreas.fenkart@streamunlimited.com> | 2013-04-05 03:03:50 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-08 19:28:39 (GMT) |
commit | ca796a310367f97b91225404311d23f7eb883046 (patch) | |
tree | 784a267c7619f336bdfd57e4b3cda96ebfac8380 /drivers/net | |
parent | 9a84912c8f19b882ff20b8744c16bbf37484712f (diff) | |
download | linux-fsl-qoriq-ca796a310367f97b91225404311d23f7eb883046.tar.xz |
mwifiex: correct wrong list in list_empty check
adapter->bss_prio_tbl list has already been checked in outer loop.
The inner loop works with priv_tmp->wmm.tid_tbl_ptr list. Also the
lock taken, gives hint that this is likely a copy-paste error.
Signed-off-by: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/mwifiex/wmm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/wmm.c b/drivers/net/wireless/mwifiex/wmm.c index 3ddae52..1b039ba 100644 --- a/drivers/net/wireless/mwifiex/wmm.c +++ b/drivers/net/wireless/mwifiex/wmm.c @@ -930,8 +930,7 @@ mwifiex_wmm_get_highest_priolist_ptr(struct mwifiex_adapter *adapter, spin_lock_irqsave(&tid_ptr->tid_tbl_lock, flags); is_list_empty = - list_empty(&adapter->bss_prio_tbl[j] - .bss_prio_head); + list_empty(&tid_ptr->ra_list); spin_unlock_irqrestore(&tid_ptr->tid_tbl_lock, flags); if (is_list_empty) |