ath10k: htc: removal of unused struct members
authorErik Stromdahl <erik.stromdahl@gmail.com>
Wed, 11 Jan 2017 14:32:09 +0000 (16:32 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 12 Jan 2017 10:51:25 +0000 (12:51 +0200)
Removed tx_credits_per_max_message and tx_credit_size
from struct ath10k_htc_ep since they are not used
anywhere in the code.

They are just written, never read.

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htc.c
drivers/net/wireless/ath/ath10k/htc.h

index 175aae38c3757a9d0118528e1c277ad1a4c98d7f..f2e065958c879983e3c8969f40cee5e6c6448fdb 100644 (file)
@@ -726,12 +726,6 @@ setup:
        ep->max_tx_queue_depth = conn_req->max_send_queue_depth;
        ep->max_ep_message_len = __le16_to_cpu(resp_msg->max_msg_size);
        ep->tx_credits = tx_alloc;
-       ep->tx_credit_size = htc->target_credit_size;
-       ep->tx_credits_per_max_message = ep->max_ep_message_len /
-                                        htc->target_credit_size;
-
-       if (ep->max_ep_message_len % htc->target_credit_size)
-               ep->tx_credits_per_max_message++;
 
        /* copy all the callbacks */
        ep->ep_ops = conn_req->ep_ops;
index 0c55cd92a951722d72f9cfc79c96da4e62cdc676..ca150c91f181ac71766f96fc27e5256d90ed083e 100644 (file)
@@ -314,8 +314,6 @@ struct ath10k_htc_ep {
 
        u8 seq_no; /* for debugging */
        int tx_credits;
-       int tx_credit_size;
-       int tx_credits_per_max_message;
        bool tx_credit_flow_enabled;
 };