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: 9469283 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 DF96A607F0 for ; Sat, 10 Dec 2016 13:00:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1E69284D1 for ; Sat, 10 Dec 2016 13:00:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B846128509; Sat, 10 Dec 2016 13:00:41 +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 48386284D1 for ; Sat, 10 Dec 2016 13:00:41 +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 1cFhGE-000475-Ov; Sat, 10 Dec 2016 13:00:18 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFhGC-0002u8-9T for ath10k@lists.infradead.org; Sat, 10 Dec 2016 13:00:17 +0000 Received: by mail-lf0-x242.google.com with SMTP id o20so2230155lfg.3 for ; Sat, 10 Dec 2016 04:59:55 -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=LeaEDSJ5wMfWtjZwsmv9uDMoDeQvbZHgVa1IUtSWfoK+JdJWsoAKOOK7qnulUnAp0j q3dv1bvfJKG5rhful8+2LF3RLtvnv6g63PQpqmUrKbTxSZCOCHOz8UnM2FtmjZTXMda2 UHzAe28LwvXyEToQzMp+C2rQIOaXLwsI2thhLDvckHUW9P7QxE4ekJSq2HoVMD8/ZsnM qroU1J83tza2RF5RoHooaUWoaFxmE4sPRaRP+Gs/QrsYpY4FyVu8l7Clv3+lnXn0xcqu bhz/4Pg0okERfZMlr5I8aR3RxnN0rePM5LWNlDOjEeoLHHk9cdmEwB5CIMBKdyvDH7qL 4loA== X-Gm-Message-State: AKaTC01rVVJ53H/9vTYjl+0AoVbTh18A0FWuqb5Jy6L9X+Esiek6Cf1hnRwdUGx0920rtw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161210_050016_621035_5919D8FB X-CRM114-Status: UNSURE ( 7.96 ) 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 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; };