Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp593659ybp; Fri, 4 Oct 2019 01:40:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvcN9jnrIxMvgLuy3sjhNEo9Az+OxgJ1Yjx1X0p9Ag2VujvRVTHBFfdaz4J+Fiv6Vjzi0o X-Received: by 2002:a05:6402:1adc:: with SMTP id ba28mr14358122edb.103.1570178459469; Fri, 04 Oct 2019 01:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570178459; cv=none; d=google.com; s=arc-20160816; b=N6Mg1G5Xub7vBTXsTdnrN5l+FeicP20aYy8+9a9yWata53itgZYr9JjguPR3F80pUl tHWoD12VKHtEY8M2/uke7zP0EZuAZLfWFB7q34OTKUr3j9D8hveXt4DIHWZXfB9XvOwx mqXUJhA0sRlO3KdP2r5NzI0LG8Q+6T7s+SodKNHljcKwHe5NmdiVF+yJ2mNUNPsyCWvH T6T/rF0aSGVHqREvwXslmq4S+Pwccr7vESz3zqCz651aZ8KxwQMWGf4PlRAw4wwLVp// AOxO4zaIDDAVab+OCyQCcPmW5LucgQKpFEo5oMzaMiNDO8e7jUWsvTO/SVxrKylnRWgz dBpQ== 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=tRlFiVGne0wcYKsB/fBy8Ai9b+iJYxsmnHaOInyqhhg=; b=VUT9EvfFEFU1vi9jhT/7A1FgbyYer2hQees9WrAQaQbnt9vmCOeNs6Jm2r2CqpqXmR rPDGR2ygtGdeOwmNzR2O3YH3Y28X5cJtTUx8I1ivreLQUao7Dm0RAgt6P5rGaPEPaaTN GaQYt0V7y6M1+jjzl2NjMaobyhhno/9KK844nnTXRQ9OFMvE/rNw+HEEQepBPo8dSKQI jBUsP6ENrrbooPHCMvdub73NM0t8/gYNTg7CZH2FhUzQA7rSXAo96K3wh1DxDOIP8Pwc JZ3waY0nbODRTUzrQdQOJyZpObO7LOVnF2EV8z/VvOKI1qY0o56rpdEBugcTtHh7CnTg q/bQ== 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 m5si1364339ejr.417.2019.10.04.01.40.34; Fri, 04 Oct 2019 01:40:59 -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 S1730818AbfJDIgz (ORCPT + 99 others); Fri, 4 Oct 2019 04:36:55 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43410 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728942AbfJDIgy (ORCPT ); Fri, 4 Oct 2019 04:36:54 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C027CBDCC17437E731EA; Fri, 4 Oct 2019 16:36:52 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 4 Oct 2019 16:36:45 +0800 From: zhengbin To: , , , , , CC: Subject: [PATCH 5/8] rtlwifi: rtl8188ee: Remove set but not used variable 'h2c_parameter' Date: Fri, 4 Oct 2019 16:43:52 +0800 Message-ID: <1570178635-57582-6-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570178635-57582-1-git-send-email-zhengbin13@huawei.com> References: <1570178635-57582-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/rtl8188ee/dm.c: In function rtl88e_dm_pwdb_monitor: drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c:763:6: warning: variable h2c_parameter 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/rtl8188ee/dm.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c index 333e355..dceb04a 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c @@ -759,14 +759,8 @@ static void rtl88e_dm_pwdb_monitor(struct ieee80211_hw *hw) rtlpriv->dm.entry_min_undec_sm_pwdb = 0; } /* Indicate Rx signal strength to FW. */ - if (rtlpriv->dm.useramask) { - u8 h2c_parameter[3] = { 0 }; - - h2c_parameter[2] = (u8)(rtlpriv->dm.undec_sm_pwdb & 0xFF); - h2c_parameter[0] = 0x20; - } else { + if (!rtlpriv->dm.useramask) rtl_write_byte(rtlpriv, 0x4fe, rtlpriv->dm.undec_sm_pwdb); - } } void rtl88e_dm_init_edca_turbo(struct ieee80211_hw *hw) -- 2.7.4