From patchwork Sat Dec 10 12:58:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9469277 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 AD68360231 for ; Sat, 10 Dec 2016 12:59:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95D9A284D1 for ; Sat, 10 Dec 2016 12:59:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8851628509; Sat, 10 Dec 2016 12:59:59 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 39850284D1 for ; Sat, 10 Dec 2016 12:59:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753211AbcLJM74 (ORCPT ); Sat, 10 Dec 2016 07:59:56 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34363 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbcLJM7z (ORCPT ); Sat, 10 Dec 2016 07:59:55 -0500 Received: by mail-lf0-f67.google.com with SMTP id x143so2227428lfd.1 for ; Sat, 10 Dec 2016 04:59:54 -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; bh=cdqdcprl5tF+mZz3Hh3nWFxE/Rq15mqge4PA2f5rC28=; b=HqKYcwB/j3a8X7fvnx2+5L0N+2FGtcbBVr2Uq5aBeP8B8ZaR6bP0sa/r6yXFnURtOH El3proMobYJZyT0lCG6UVVY+27siB1P4wV2r2Gkn2jtjdiOdx7SVT666Fx5+uTY1AIYe DuMVDfd9HMJPK7uBGsFXyDOIK0qkBMcFTKM7VpkgL4gZJQLVCMjow6kz9e/vYxczGDSy gXZQGTcheJfrUY9HvPEnTWU3iWhsWUQ7H1gWp9fFGcuNZVSwZj0q3tye2Cf5nOWfk7Vo 0ohZs/WXXwoeNwG98U4bRvcP31lDs0cPJagZI+A1ZYyjfOUNdz5Dj/WLNs4fDjiaf+Lz gaOg== 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; bh=cdqdcprl5tF+mZz3Hh3nWFxE/Rq15mqge4PA2f5rC28=; b=MZuzcHSCjvPfl44Vfcebq5suXq8HsxKxEKl9GP6y4CeulEx5G7C9A3gC5cGOPo1wuj QGFn5vOFa64rtsggXwDlO+IjFIPYo9jGHSdIHMtDTxuuEFHntBRVpy0z/GYDPzLzJtc3 SSlzZuPHxJGGqM8J1BftPvQy1g/CokeN3HOXlsHiX/cHniURz4TK87o4wJEGn1/I7s5s 5RbXSQktYsqRgMar48yqQBNx8q8rJnd8rForPY7VvyCRh9oOAh3LN01VqiMTXiy8L84e L/cuSrjC4dpw29AQuR7bnPgg3QU+MGQYT4M1XNQjq0P8YSIgfOHnL13RDIbVxje8dNVs KrrA== X-Gm-Message-State: AKaTC00Fh3QEQfDG2vfB9Nrs9eBqEj8/+cOf7Xx5VOS8CfbXY9JQIat71A0qLtyxDCJPkg== X-Received: by 10.46.76.1 with SMTP id z1mr13875290lja.41.1481374793872; Sat, 10 Dec 2016 04:59:53 -0800 (PST) Received: from localhost.localdomain (81-233-218-8-no25.tbcn.telia.com. [81.233.218.8]) by smtp.gmail.com with ESMTPSA id c66sm7248541ljd.44.2016.12.10.04.59.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 10 Dec 2016 04:59:53 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [PATCH 1/2] ath10k: htc: Removal of unused struct members Date: Sat, 10 Dec 2016 13:58:40 +0100 Message-Id: <1481374721-16354-1-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.7.4 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 175aae3..f2e0659 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c @@ -726,12 +726,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 0c55cd9..ca150c9 100644 --- a/drivers/net/wireless/ath/ath10k/htc.h +++ b/drivers/net/wireless/ath/ath10k/htc.h @@ -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; };