diff options
author | Avinash Patil <patila@marvell.com> | 2012-01-25 08:50:24 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-27 23:57:02 +0400 |
commit | 2690e1bb35e97a3b15f0064e9176cd2ec61c2511 (patch) | |
tree | 5c682419e1fb513c3723f812c97d851226b98fd5 /drivers/net/wireless/mwifiex/main.c | |
parent | 10ef6a8f1567739192c29f11375556ce0d53ec74 (diff) | |
download | linux-2690e1bb35e97a3b15f0064e9176cd2ec61c2511.tar.xz |
mwifiex: pass priv pointer instead of adapter
Pass mwifiex_private pointer directly to wmm_add_buf_txqueue()
instead of passing adapter and then deriving priv again in
mwifiex_get_priv_by_id(). This reduces a 'for' loop in TX path.
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/wireless/mwifiex/main.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c index 1a0775d19ade..80e44566bf6e 100644 --- a/drivers/net/wireless/mwifiex/main.c +++ b/drivers/net/wireless/mwifiex/main.c @@ -462,7 +462,7 @@ mwifiex_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) tx_info->bss_type = priv->bss_type; mwifiex_fill_buffer(skb); - mwifiex_wmm_add_buf_txqueue(priv->adapter, skb); + mwifiex_wmm_add_buf_txqueue(priv, skb); atomic_inc(&priv->adapter->tx_pending); if (atomic_read(&priv->adapter->tx_pending) >= MAX_TX_PENDING) { |