diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-10-03 07:56:27 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-11-11 05:50:55 -0500 |
commit | 4533d901a4a78542544b91ad620fffd3307ade04 (patch) | |
tree | 90834fc33643573949affec634715b69485dd44e /drivers/net | |
parent | 99f54299b973fd436dd9b4b1dd638c16f3d3deb4 (diff) |
ath6kl: Minor cleanup in msg_look_ahead parameter in ath6kl_htc_rxmsg_pending_handler()
It is just a four byte information of the received message
from ath6kl_htc_rxmsg_pending_handler(). Remove unnecessary
array representaion.
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc_hif.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index ca3d08462181..9a9eae56af91 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c | |||
@@ -1770,7 +1770,7 @@ fail_rx: | |||
1770 | } | 1770 | } |
1771 | 1771 | ||
1772 | int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target, | 1772 | int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target, |
1773 | u32 msg_look_ahead[], int *num_pkts) | 1773 | u32 msg_look_ahead, int *num_pkts) |
1774 | { | 1774 | { |
1775 | struct htc_packet *packets, *tmp_pkt; | 1775 | struct htc_packet *packets, *tmp_pkt; |
1776 | struct htc_endpoint *endpoint; | 1776 | struct htc_endpoint *endpoint; |
@@ -1787,7 +1787,7 @@ int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target, | |||
1787 | * On first entry copy the look_aheads into our temp array for | 1787 | * On first entry copy the look_aheads into our temp array for |
1788 | * processing | 1788 | * processing |
1789 | */ | 1789 | */ |
1790 | memcpy(look_aheads, msg_look_ahead, sizeof(look_aheads)); | 1790 | look_aheads[0] = msg_look_ahead; |
1791 | 1791 | ||
1792 | while (true) { | 1792 | while (true) { |
1793 | 1793 | ||
diff --git a/drivers/net/wireless/ath/ath6kl/htc.h b/drivers/net/wireless/ath/ath6kl/htc.h index 8ce0c2c07ded..69d44e3ef97f 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.h +++ b/drivers/net/wireless/ath/ath6kl/htc.h | |||
@@ -563,7 +563,7 @@ int ath6kl_htc_get_rxbuf_num(struct htc_target *target, | |||
563 | int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target, | 563 | int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target, |
564 | struct list_head *pktq); | 564 | struct list_head *pktq); |
565 | int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target, | 565 | int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target, |
566 | u32 msg_look_ahead[], int *n_pkts); | 566 | u32 msg_look_ahead, int *n_pkts); |
567 | 567 | ||
568 | static inline void set_htc_pkt_info(struct htc_packet *packet, void *context, | 568 | static inline void set_htc_pkt_info(struct htc_packet *packet, void *context, |
569 | u8 *buf, unsigned int len, | 569 | u8 *buf, unsigned int len, |
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.c b/drivers/net/wireless/ath/ath6kl/htc_hif.c index 86b1cc7409c2..37a13f099c64 100644 --- a/drivers/net/wireless/ath/ath6kl/htc_hif.c +++ b/drivers/net/wireless/ath/ath6kl/htc_hif.c | |||
@@ -417,7 +417,7 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done) | |||
417 | * we rapidly pull packets. | 417 | * we rapidly pull packets. |
418 | */ | 418 | */ |
419 | status = ath6kl_htc_rxmsg_pending_handler(dev->htc_cnxt, | 419 | status = ath6kl_htc_rxmsg_pending_handler(dev->htc_cnxt, |
420 | &lk_ahd, &fetched); | 420 | lk_ahd, &fetched); |
421 | if (status) | 421 | if (status) |
422 | goto out; | 422 | goto out; |
423 | 423 | ||