]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: use direct function calls for descriptors when possible
authorBruno Randolf <br1@einfach.org>
Wed, 16 Jun 2010 10:12:01 +0000 (19:12 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Jun 2010 18:59:03 +0000 (14:59 -0400)
commita1af5b2d03d7522474c7710f91aaf24820a473b6
treedf6977155ed9deaf0dc745b353af15475dfca6ce
parent9ae90e9d773e63c780e27d69e966a273c4289d03
ath5k: use direct function calls for descriptors when possible

Use direct function calls for ath5k_hw_setup_rx_desc() and
ath5k_hw_setup_mrr_tx_desc() instead of a function pointer which always pointed
to the same function in the case of ath5k_hw_setup_rx_desc() and which is
easily unified in the case of ath5k_hw_setup_mrr_tx_desc().

Also simplify the initialization function for the remaining function pointers.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath5k/desc.c