wil6210: optimize index manipulation in wil_vring_reap_rx
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Sun, 15 Mar 2015 14:00:16 +0000 (16:00 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 20 Mar 2015 06:33:16 +0000 (08:33 +0200)
commit148416a973e0a07fa94a0de90dae92763b282311
tree2cf3902cd2213206e7c34f34a0ac7db5095136ca
parent8fbb2e98fef043019b9d546300406b2f6e9d38f5
wil6210: optimize index manipulation in wil_vring_reap_rx

Use temporal variable for often used vring->swhead;
and use proper index in debug printing - vring->swhead
used before was modified in wil_vring_advance_head
and then increased value was used in debug print

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/txrx.c