Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4533d901 authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by Kalle Valo
Browse files

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: default avatarVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 99f54299
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1770,7 +1770,7 @@ static int ath6kl_htc_rx_fetch(struct htc_target *target,
}
}


int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
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_packet *packets, *tmp_pkt;
	struct htc_endpoint *endpoint;
	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
	 * On first entry copy the look_aheads into our temp array for
	 * processing
	 * processing
	 */
	 */
	memcpy(look_aheads, msg_look_ahead, sizeof(look_aheads));
	look_aheads[0] = msg_look_ahead;


	while (true) {
	while (true) {


+1 −1
Original line number Original line Diff line number Diff line
@@ -563,7 +563,7 @@ int ath6kl_htc_get_rxbuf_num(struct htc_target *target,
int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target,
int ath6kl_htc_add_rxbuf_multiple(struct htc_target *target,
				  struct list_head *pktq);
				  struct list_head *pktq);
int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
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,
static inline void set_htc_pkt_info(struct htc_packet *packet, void *context,
				    u8 *buf, unsigned int len,
				    u8 *buf, unsigned int len,
+1 −1
Original line number Original line Diff line number Diff line
@@ -417,7 +417,7 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done)
		 * we rapidly pull packets.
		 * we rapidly pull packets.
		 */
		 */
		status = ath6kl_htc_rxmsg_pending_handler(dev->htc_cnxt,
		status = ath6kl_htc_rxmsg_pending_handler(dev->htc_cnxt,
							  &lk_ahd, &fetched);
							  lk_ahd, &fetched);
		if (status)
		if (status)
			goto out;
			goto out;