From patchwork Fri Nov 18 19:22:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9437245 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 80D7F60238 for ; Fri, 18 Nov 2016 19:24:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77A9F29900 for ; Fri, 18 Nov 2016 19:24:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CA0A299D3; Fri, 18 Nov 2016 19:24:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2EA2B29900 for ; Fri, 18 Nov 2016 19:24:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7omG-0006K7-Hz; Fri, 18 Nov 2016 19:24:48 +0000 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7om3-0005vQ-JC for ath10k@lists.infradead.org; Fri, 18 Nov 2016 19:24:37 +0000 Received: by mail-qk0-x243.google.com with SMTP id x190so34214540qkb.0 for ; Fri, 18 Nov 2016 11:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LvuRveOX404BQ7cIsN6kIiGWmJjQVeCjFmDp9Jzmakg=; b=WOLAe74/cMNPJqy6cLq4C6TSqvkZPmlYR8XA9CVmI+mDOauYwtPN9WDnQpixMeSd0F ECgmjoEGGWYC8g0mxLWhmopWuKxCNXsQrACgqDb/o23YFQ7KV0Db/c8BzdAt2o9EAMSM TxnpMqzWuhP8xmHOpnkWxl0EmwaeWGjmM/yk43ctPI1QO5JABhtzEgCrVxupjJRPvVMy 4sMzyBWyms9YSWZAcO2uVnEJrIW3eI/dVUMP0kWuc1FgO2fLv/IwuIvFZ8BJUT164sNb cqKmcXgMJgFWcsF/uaZDmy2t+KV3XMyGLxTmvu9msB0O8elb4+ZqkbDt6h7EBX4pJtLt hYXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LvuRveOX404BQ7cIsN6kIiGWmJjQVeCjFmDp9Jzmakg=; b=aLMATKaGBTpY8CM0dmUunJNPIfyQaUUmTZW7HXAEsalDbWM31OOEAGUIAIZ21QQlA7 rOzmJwodfUqRU/qnyEuz2EsT5FGFsXk0lmZllp0naDRq6e5W3EKQ2tTBYJ0Njx+qdvaU NB3mF1vgHBx5h9mS3KS3TJUr+u+0DlapUWJXtOaUQLWpWfS82BegQLhIWnUgSmF0zhPT 6SjoK1EMb7d7Wdfwk6I/MuY1QUQNy7f/GVqxHcPB+/GCxuc0vH5wRMPWFUbJ1Ujv9GG9 8TjkHvNCwXP1YvnWJMuxsqodDITTSFHbsm5XBvjzwP68+lu7SIFMAVt/Yl9H2WwsJkXu OhCQ== X-Gm-Message-State: AKaTC02Q66fTz3JQZJa558duaEqB883kcvTv02cWgBmpq7XLZ62XW5Y+hEP6TNEhc1BiPQ== X-Received: by 10.46.76.26 with SMTP id z26mr805433lja.9.1479497053914; Fri, 18 Nov 2016 11:24:13 -0800 (PST) Received: from erik-desktop.lan (81-233-218-8-no25.tbcn.telia.com. [81.233.218.8]) by smtp.gmail.com with ESMTPSA id 23sm2623298ljf.48.2016.11.18.11.24.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Nov 2016 11:24:13 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC v2 03/11] ath10k: htc: Removal of unused struct members Date: Fri, 18 Nov 2016 20:22:43 +0100 Message-Id: <1479496971-19174-4-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1479496971-19174-1-git-send-email-erik.stromdahl@gmail.com> References: <1479496971-19174-1-git-send-email-erik.stromdahl@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161118_112435_868833_3C073770 X-CRM114-Status: UNSURE ( 7.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Stromdahl MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/net/wireless/ath/ath10k/htc.c | 6 ------ drivers/net/wireless/ath/ath10k/htc.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c index 957e828..79d44de 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c @@ -815,12 +815,6 @@ int ath10k_htc_connect_service(struct ath10k_htc *htc, 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; diff --git a/drivers/net/wireless/ath/ath10k/htc.h b/drivers/net/wireless/ath/ath10k/htc.h index b0f9cf3..f94b25a 100644 --- a/drivers/net/wireless/ath/ath10k/htc.h +++ b/drivers/net/wireless/ath/ath10k/htc.h @@ -336,8 +336,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; };