aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hif_usb.c
diff options
context:
space:
mode:
authorSujith Manoharan <Sujith.Manoharan@atheros.com>2011-04-13 11:26:06 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-04-13 15:24:12 -0400
commite1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872 (patch)
tree41697a62feb8438f2cc74b9d92d7d73e0c23df0d /drivers/net/wireless/ath/ath9k/hif_usb.c
parentb587fc81a80b9656f64e89fe0a106ffa4b35abca (diff)
downloadkernel_samsung_smdk4412-e1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872.zip
kernel_samsung_smdk4412-e1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872.tar.gz
kernel_samsung_smdk4412-e1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872.tar.bz2
ath9k_htc: Optimize HTC start/stop API
There is no point in looping over all the endpoints, since the HIF layer uses the start/stop APIs only for the TX pipe. Simplify the API accordingly. Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hif_usb.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hif_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c
index db07e7b..b3f23c2 100644
--- a/drivers/net/wireless/ath/ath9k/hif_usb.c
+++ b/drivers/net/wireless/ath/ath9k/hif_usb.c
@@ -310,7 +310,7 @@ static int hif_usb_send_tx(struct hif_device_usb *hif_dev, struct sk_buff *skb)
return 0;
}
-static void hif_usb_start(void *hif_handle, u8 pipe_id)
+static void hif_usb_start(void *hif_handle)
{
struct hif_device_usb *hif_dev = (struct hif_device_usb *)hif_handle;
unsigned long flags;
@@ -322,7 +322,7 @@ static void hif_usb_start(void *hif_handle, u8 pipe_id)
spin_unlock_irqrestore(&hif_dev->tx.tx_lock, flags);
}
-static void hif_usb_stop(void *hif_handle, u8 pipe_id)
+static void hif_usb_stop(void *hif_handle)
{
struct hif_device_usb *hif_dev = (struct hif_device_usb *)hif_handle;
struct tx_buf *tx_buf = NULL, *tx_buf_tmp = NULL;