Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6675677ybn; Mon, 30 Sep 2019 01:49:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2Uyh00Srzz/S5rVeVlAIHs/u+ZlR0VIB1PvlSRNhvTl1OOi8uCVUEAokGpjTnN6GBJQzw X-Received: by 2002:aa7:cf11:: with SMTP id a17mr18328301edy.153.1569833342187; Mon, 30 Sep 2019 01:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569833342; cv=none; d=google.com; s=arc-20160816; b=lDFlngMCyqWoZalkCTkHu+FQPpAn7MyAZ+/k3R7Tum3YzVn6BDSwvV0cue9266cFFd MY0VH+2mYd+kx33TtVrcUENcDe1VSTKQNnf0M8guNa4hizsfnnpOOQSPp5VI1dxLJK/q YK2gnpwuDEf2nhWHKBaD2StAeHukh3rgCc9L3OWA+5O/vSj7CiF+X+LfxzjPp9dXBR2B 6j0wZgVGm/vZ5TgXc+Mx6O981VY70safJyRQb+edPQ5zKKseT3gJjyIZzd+hGFGXD2B3 jfKyoxk1Y+iG+hm6YwFUlncVbTwMisPHQSBn6Pg/3kh3WqjFdfHr2ryKk0VOPpaNL6t4 ifGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ZcaQrgImfWrTChd4F2qgA1c4lsGnkFt8lzQPGu+k5+k=; b=qUQ8EDDhh+upaz59NrhyO8uf63B5iamoCuBi66z6uzv6pRoq2tYbvrJrasdPr1/I/1 2ogwi9fmMzrA7VK5I4W3vVAFcacH7Q4DbjXVV2bqydMKokC8TrU4aXJIaQ0cLi8PHh0a +vRzd2pXZ12usD3VectGlyVMgGJpa99+RJqmSlnFgiO3iqT7UDrGqw/pS+tf5XoOlmHi Hb7sTRMjftkks6hxk2LKVOnXx2A7iI+QpUqGHJDHrhSVt5yKSc+WeHvNj58U2R1seu/4 Gu3+Jto3un1OZ0GpdywWv6y9Ei8ur2YOXmJbRZbbWPKNr9KuwCtzUPHhuOCYgVxFDz7W oayQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si6176312edq.49.2019.09.30.01.48.34; Mon, 30 Sep 2019 01:49:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730243AbfI3IsP (ORCPT + 99 others); Mon, 30 Sep 2019 04:48:15 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3187 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730212AbfI3IsN (ORCPT ); Mon, 30 Sep 2019 04:48:13 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 632BAE3356B085B1330C; Mon, 30 Sep 2019 16:48:09 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Mon, 30 Sep 2019 16:47:59 +0800 From: zhengbin To: , , , , CC: Subject: [PATCH 1/6] rtlwifi: Remove set but not used variable 'rtstate' Date: Mon, 30 Sep 2019 16:54:47 +0800 Message-ID: <1569833692-93288-2-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1569833692-93288-1-git-send-email-zhengbin13@huawei.com> References: <1569833692-93288-1-git-send-email-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/realtek/rtlwifi/ps.c: In function rtl_ps_set_rf_state: drivers/net/wireless/realtek/rtlwifi/ps.c:71:19: warning: variable rtstate set but not used [-Wunused-but-set-variable] It is not used since commit f1d2b4d338bf ("rtlwifi: rtl818x: Move drivers into new realtek directory") Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtlwifi/ps.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/ps.c b/drivers/net/wireless/realtek/rtlwifi/ps.c index 70f04c2..e13913a 100644 --- a/drivers/net/wireless/realtek/rtlwifi/ps.c +++ b/drivers/net/wireless/realtek/rtlwifi/ps.c @@ -68,7 +68,6 @@ static bool rtl_ps_set_rf_state(struct ieee80211_hw *hw, { struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); - enum rf_pwrstate rtstate; bool actionallowed = false; u16 rfwait_cnt = 0; @@ -102,8 +101,6 @@ static bool rtl_ps_set_rf_state(struct ieee80211_hw *hw, } } - rtstate = ppsc->rfpwr_state; - switch (state_toset) { case ERFON: ppsc->rfoff_reason &= (~changesource); -- 2.7.4