Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp557619ybp; Fri, 4 Oct 2019 00:59:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqywbvwkjBnE4XrJtpqizulh6FR2xJEiGgaZOl3kjImjXpiiK4AlmRb4NvAZxr5kWATKPC6b X-Received: by 2002:a17:906:80d:: with SMTP id e13mr11211457ejd.72.1570175978662; Fri, 04 Oct 2019 00:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570175978; cv=none; d=google.com; s=arc-20160816; b=voxmEiC/TktjNBbegJwxSEbDd+onN3DKl4KGrqT2uoXBw0RtPkOXn3+TLeZeLQ9L/h SEvWg1UDsPYn7jihJFtQx5sppxq4/0xRE1bb+7KJ9CX9S31qcugqr4HUXjYliZOYD2mx aMKPlmDEGDJTnLlEXTVPPb24UFAHDW8oHy/2vsKisSuNqa9SVFXOjRESHFxgM/axPqNV Mewse7+ImnQI7Zy0xzxdg+IVHX0NBjxZv9+W+WkvoTpBXPdMb1Gu7SnaOBcH2jRq/RLQ /7HJPQt4s5wLQ9mlt9AUeLpbunqndgjFd2ZcRqQeZF03jx0iN1eUTCml1WA0/dUdQ2SK 48Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:user-agent:date:message-id :subject:from:cc:to; bh=h/ZntoetHMerYZhbuUUALsFRbcghR/fxn6iBOxYGvIQ=; b=N9DkQeYvG5TfYCzUS9WXw4bqVWhTSDTP3W483O0MCi4DQYeASNC5CX76oGMtMv+/rN 298OgB92SMepUG7DdKHbK9+ti3yt39qgN7my5Cpr5JX5kF2MnXMLE+5VB89Ip4Gwk0NY mglEQrfWvHvvc6lMbcBvNoARimXTIJVCERqhQmkCGbkOkUh0Fe/FZi/8WllhV5e3EMJL HY8gcPzr2W4atW4jiDPtjVwaGBH6Kq23xnMnkwhwysDBj3UM+JtcrKdo3CfXnWRoDDlK n9xySkTjUTRafL5uIZefYM8O5M/u/Jj6mh9+s1pszKVzz3kpgap6lfJZGtTiplbpxw66 xqtA== 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 g19si2466945ejw.373.2019.10.04.00.59.01; Fri, 04 Oct 2019 00:59:38 -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 S1731944AbfJDCgg (ORCPT + 99 others); Thu, 3 Oct 2019 22:36:36 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:52336 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728360AbfJDCgg (ORCPT ); Thu, 3 Oct 2019 22:36:36 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9083BD9F2CCEE641D326; Fri, 4 Oct 2019 10:36:34 +0800 (CST) Received: from [127.0.0.1] (10.184.213.217) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 4 Oct 2019 10:36:27 +0800 To: , , , CC: From: "zhengbin (A)" Subject: [PATCH v2] rtlwifi: rtl8192ee: Remove set but not used variable 'err' Message-ID: <2ca176f2-e9ef-87cd-7f7d-cd51c67da38b@huawei.com> Date: Fri, 4 Oct 2019 10:36:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.184.213.217] 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] Reported-by: Hulk Robot Signed-off-by: zhengbin ---  drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c | 5 +----  1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c index 67305ce..0546242 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,9 +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); - -       return 0; +       return _rtl92ee_fw_free_to_go(hw);  }  static bool _rtl92ee_check_fw_read_last_h2c(struct ieee80211_hw *hw, u8 boxnum) -- 2.7.4