diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-09-07 14:10:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-14 13:56:44 -0400 |
commit | 31937c423ed3a13613b3aa7459e7405dd428f2d8 (patch) | |
tree | b8507dc88383c809e0521006791ee343e618d97c /drivers/net/wireless/rt2x00/rt2800pci.c | |
parent | 4319e193271dc93241338eb0173fc26dc6c35465 (diff) |
rt2x00: Minor optimizazion in txdone path
We can save an indirect function call + some instructions for fetching
the actual function pointer by passing the driver specific txwi pointer
directly from rt2800pci/rt2800usb to rt2800lib instead of using the
rt2800_drv_get_txwi callback.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index 7586468955da..17abb0675eaf 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -760,7 +760,7 @@ static bool rt2800pci_txdone(struct rt2x00_dev *rt2x00dev) | |||
760 | } | 760 | } |
761 | 761 | ||
762 | entry = rt2x00queue_get_entry(queue, Q_INDEX_DONE); | 762 | entry = rt2x00queue_get_entry(queue, Q_INDEX_DONE); |
763 | rt2800_txdone_entry(entry, status); | 763 | rt2800_txdone_entry(entry, status, rt2800pci_get_txwi(entry)); |
764 | 764 | ||
765 | if (--max_tx_done == 0) | 765 | if (--max_tx_done == 0) |
766 | break; | 766 | break; |