ath6kl: Minor cleanup in msg_look_ahead parameter in ath6kl_htc_rxmsg_pending_handler()
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Mon, 3 Oct 2011 11:56:27 +0000 (17:26 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:50:55 +0000 (12:50 +0200)
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>
drivers/net/wireless/ath/ath6kl/htc.c
drivers/net/wireless/ath/ath6kl/htc.h
drivers/net/wireless/ath/ath6kl/htc_hif.c

index ca3d08462181469e8a3ccad9d053d2580500b41f..9a9eae56af911e04646632f86dbdf3049f94d240 100644 (file)
@@ -1770,7 +1770,7 @@ fail_rx:
 }
 
 int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
-                                    u32 msg_look_ahead[], int *num_pkts)
+                                    u32 msg_look_ahead, int *num_pkts)
 {
        struct htc_packet *packets, *tmp_pkt;
        struct htc_endpoint *endpoint;
@@ -1787,7 +1787,7 @@ int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
         * On first entry copy the look_aheads into our temp array for
         * processing
         */
-       memcpy(look_aheads, msg_look_ahead, sizeof(look_aheads));
+       look_aheads[0] = msg_look_ahead;
 
        while (true) {
 
index 8ce0c2c07ded8b14398cddf9af42a2aff2b3e74b..69d44e3ef97fab21775d9bd8f24f0989b1b27a99 100644 (file)
@@ -563,7 +563,7 @@ int ath6kl_htc_get_rxbuf_num(struct htc_target *target,
 int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target,
                                  struct list_head *pktq);
 int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
-                                    u32 msg_look_ahead[], int *n_pkts);
+                                    u32 msg_look_ahead, int *n_pkts);
 
 static inline void set_htc_pkt_info(struct htc_packet *packet, void *context,
                                    u8 *buf, unsigned int len,
index 86b1cc7409c2afe3e80d062141eda61498ceb7e3..37a13f099c64d529abd6802dc3d99a4fa78161b7 100644 (file)
@@ -417,7 +417,7 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done)
                 * we rapidly pull packets.
                 */
                status = ath6kl_htc_rxmsg_pending_handler(dev->htc_cnxt,
-                                                         &lk_ahd, &fetched);
+                                                         lk_ahd, &fetched);
                if (status)
                        goto out;