From patchwork Mon Dec 18 15:02:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin King X-Patchwork-Id: 10120027 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 AA48B6019C for ; Mon, 18 Dec 2017 15:18:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 950842891D for ; Mon, 18 Dec 2017 15:18:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 89DB728D60; Mon, 18 Dec 2017 15:18:32 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 508032891D for ; Mon, 18 Dec 2017 15:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=P9+49lPlFJciSmH5GkVQwTcGHD3ihd7TYUO6HAy5B9k=; b=au28cEw2xhuGmt TiWHTRC5KeBsk/gsIFeWw4uUZuZPSDzn+cEWF+qn0CEVIxhTv/zoXYsDK/mcImiRO8qEsZjpq7yyz 9gY6AtG19a+MggyaJ7Nyh8ZCT0a8VCKmV8axCAKbPCNmtnYybnteFqR9MbxWmISHypNNconH1ZQQS GtyPsI0NmWyEV+uoECv0ZEEI5TjlYIJXZnrO2jsp/RGuoOJ5IjeLdibksTax2aO52z6ecDxLdpHvB STW87fOxqEomqzrEDHWBW1kyVMyRcZJwaRhlsgahrwd2IuuWT2/vI19XepvW/p2oRDDVHJsBCTgne Q+MMTEEE/kgASn7iggxA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eQxBI-00049p-HP; Mon, 18 Dec 2017 15:18:16 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eQxBE-00042V-Jr for ath10k@bombadil.infradead.org; Mon, 18 Dec 2017 15:18:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=enK8TXGhfLF2pwsWYzTAo5naY+TRKc07vCCJS9H7078=; b=selIxw4NRA0In4wALir3XjzeZF kxnifG2ZZXvAGL5ePm8YpsS+ok5nHWBpB+K2W4LltHzG4/pU759ebZVscIxHWovCFmo4aNrIb5GJo WOAoyPBvHz93aYO/qA9lkeYc9+FT489V1lQGb8ZQrn+XD9RgaBPMBrfjdFWAnVgHEEoQQxicEDYiz KD/NldiSdfCf6VXQ4oVLRaLDK7hcMCOFBw8SRBFe+zvtW51MYuvrEcoJD8/KzgQV5aBNCVi1hoHOm McT2XIhir77K1uPM+ZJ1S2fe4wg6y7z0WmMUhadIkc8aR2Q5qsBTsgB2mRSRel0adWhrQiQQSc3dD GYzX+tNg==; Received: from youngberry.canonical.com ([91.189.89.112]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eQwxg-0003fi-LE for ath10k@lists.infradead.org; Mon, 18 Dec 2017 15:04:19 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1eQwwI-0003IM-5I; Mon, 18 Dec 2017 15:02:46 +0000 From: Colin King To: Kalle Valo , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH][next] ath10k: wmi: remove redundant integer fc Date: Mon, 18 Dec 2017 15:02:45 +0000 Message-Id: <20171218150245.9073-1-colin.king@canonical.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171218_150412_702039_0660E7E2 X-CRM114-Status: UNSURE ( 6.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Colin Ian King Variable fc is being assigned but never used, so remove it. Cleans up the clang warning: warning: Value stored to 'fc' is never read Signed-off-by: Colin Ian King --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 8d53063bd503..06fde53aa679 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -2494,7 +2494,6 @@ ath10k_wmi_tlv_op_gen_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) void *ptr; int len; u32 buf_len = msdu->len; - u16 fc; struct ath10k_vif *arvif; dma_addr_t mgmt_frame_dma; u32 vdev_id; @@ -2503,7 +2502,6 @@ ath10k_wmi_tlv_op_gen_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) return ERR_PTR(-EINVAL); hdr = (struct ieee80211_hdr *)msdu->data; - fc = le16_to_cpu(hdr->frame_control); arvif = (void *)cb->vif->drv_priv; vdev_id = arvif->vdev_id;