Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6676838ybn; Mon, 30 Sep 2019 01:50:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ7XmGPbdaV/6OpZE5A/tQAWpaVCeIw80chCAwMZ9r2J9eGjQAW/rXeqU5VznuuWRfM+OP X-Received: by 2002:aa7:d692:: with SMTP id d18mr17956350edr.95.1569833427001; Mon, 30 Sep 2019 01:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569833426; cv=none; d=google.com; s=arc-20160816; b=pTNEZcqhrlueLT3EMQLzz3vLxDxQ0uZrNQfKZqbS32DQJu2KfmKd+Vdz+dT+8SEFcO ui81dCdQrhrXxV0A8LMnuRkHwbrXCqhasEo16CJnkN89U/SFPh55MNvmQ2CUNDNJ5pWw cFij6bAViWKIs6E8LkuFR10z1YcUaYp+54hkC7gUwQGmkOFuOHEDPyJx2MHfMwswChgG HfB9oYDBR8VX/I5SMc6TtqgBdSWITU4+tsXdwZ3T6f1fI2pDpkojYWEZfO1VX6seW9fF vamGjWtJwBr/4HBWK+ua63PCD5FlSSRIomKJbYE0Eupspy5dimE8GC08RBw1+5JG41k7 mMtA== 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=5g3cCpLI284y/lrVqZ51EE7AVEdxZEdik1oFfqz48KI=; b=nuqrFyte2PSYDsVbAC2zELWItKLqFDO3Sf/NpUV6ExGvjsAMZaJXVgVzOHCZE0Hh4y 7iVN0tTnhpHS6KOX6DBKIbRoPZTd3+sZQYWMCOT0exAmNPHx1zKea8urPafB5/vzKn3g YHfpTI11vmX0iAV0wvSLdboDsiNocAqOqqXR7opACuIJUt8nys1otsk3DFmafvn9CxMk DVTeRYGwJfWZl99TAAxg6j/yQA6A8ZWT0+nPh9Ea8VI6TFLAE24L3EuPdj5uT9qyjY4L bj0ZWC6kcpCOEkWQoMDjCgo8bwFpsVw3wDClcmugzzGH69sY68Q8aSDWcAKmLzNWNUKj HNGQ== 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 v39si6738239edc.234.2019.09.30.01.50.02; Mon, 30 Sep 2019 01:50:26 -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 S1730143AbfI3IsO (ORCPT + 99 others); Mon, 30 Sep 2019 04:48:14 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3186 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729899AbfI3IsN (ORCPT ); Mon, 30 Sep 2019 04:48:13 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 46C27C786ED6CAB8386C; 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:48:00 +0800 From: zhengbin To: , , , , CC: Subject: [PATCH 3/6] rtlwifi: rtl8192ee: Remove set but not used variable 'err' Date: Mon, 30 Sep 2019 16:54:49 +0800 Message-ID: <1569833692-93288-4-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/rtl8192ee/fw.c: In function rtl92ee_download_fw: drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c:111:6: warning: variable err set but not used [-Wunused-but-set-variable] It is not used since commit c93ac39da006 ("rtlwifi: Remove some redundant code") Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c index 67305ce..322798c 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c @@ -108,7 +108,6 @@ int rtl92ee_download_fw(struct ieee80211_hw *hw, bool buse_wake_on_wlan_fw) struct rtlwifi_firmware_header *pfwheader; u8 *pfwdata; u32 fwsize; - int err; enum version_8192e version = rtlhal->version; if (!rtlhal->pfirmware) @@ -146,7 +145,7 @@ int rtl92ee_download_fw(struct ieee80211_hw *hw, bool buse_wake_on_wlan_fw) _rtl92ee_write_fw(hw, version, pfwdata, fwsize); _rtl92ee_enable_fw_download(hw, false); - err = _rtl92ee_fw_free_to_go(hw); + (void)_rtl92ee_fw_free_to_go(hw); return 0; } -- 2.7.4