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: 9437217 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 A012C60238 for ; Fri, 18 Nov 2016 19:24:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97A7C29900 for ; Fri, 18 Nov 2016 19:24:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C47B299C9; Fri, 18 Nov 2016 19:24:20 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46F3429900 for ; Fri, 18 Nov 2016 19:24:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753030AbcKRTYR (ORCPT ); Fri, 18 Nov 2016 14:24:17 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:34699 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752301AbcKRTYO (ORCPT ); Fri, 18 Nov 2016 14:24:14 -0500 Received: by mail-qk0-f194.google.com with SMTP id y205so857932qkb.1 for ; Fri, 18 Nov 2016 11:24:14 -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=Swgb2GeBuzh0sqYEAA/eH3bI6iwQDQFv5OIqmBq3j9gc6ZYvhESn1pDU8EN0sqZ9Uv EtwiDm3XLdFPePsJZHlSjCJntSV8Rkd4EZNay6+rOHk/c5tIOqHtnJlWG7jyELv28mLu giSoVnvyUmnswX7VafaR0yieKDn2swN5fTKwHNnIgWD8uRGb1m6SBld91/mLlzkwqSEE +kVZ7rYsV6Avm0GKxkX62h03Y46fOjrlfRk/nlFiHa0g6O2JdY6OUo6rSUupluA+ycgr rJhaPmlRmy4WQDFQp+u9nxsO8cXeXJXnfJAOCv7ZYkngk2VSLBGdNqn5rqKvWyr/qXT7 dg0g== X-Gm-Message-State: AKaTC01CvvGg7F+tAr1zBhjfOCco6W5QlSR3O6N+VUGDvNwBH8JjWRyowsmQ7yXCI7dqlw== 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 Cc: Erik Stromdahl 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> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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; };