Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp657027ybp; Wed, 9 Oct 2019 02:04:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdaqTpmnGqP+2teDrbWUOfYrByhCa4/5B/PZIrsg0/TDPiDTswiyhv79jHNnrsDYaJNNBV X-Received: by 2002:a17:906:7fd3:: with SMTP id r19mr1780187ejs.46.1570611882318; Wed, 09 Oct 2019 02:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570611882; cv=none; d=google.com; s=arc-20160816; b=nRa9ICyS+x7DiTjFH/6SeuwFmxDwCjMZpCh7NCVlibpVYQWErXvr01OKTczwPWeofu 6PplMNpuG7qYlvhH5QgcDJ3g83cpT9w7uSXKYPnQkI/6N2AUfmMV+xDrZZadIw+KCDVc RznQDGL2u7UcnlrozYYwTj6RXSmN14nOV+fJJr2IoPpewCUif34SmR8cFVWZbfvVCCm5 pfuAPvfHDRU/k2WW/xKM7IuT+hqHmJCafrQGKjo+m/JfclTQVX7tLMZKQ4sZatlksvHO Q+p3duW+WhEGFBaE7NZz1HrKV/1gnFv19GiZvFS/9/GfusFb6Ew5Mm2wAHzJZdA833Hx xvLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=/qnskhD5x0fokaage6zfBAM+CG8WzClwhNoymP3hlUc=; b=svVLd9uWNmKeLgLVyhVNgWkcbKyi7F7LnUHEo/Ut9fbBwjq/KkKusm08n0fzIyWKFc cetivcsNGqf5pI++FZAwejeH4JwmVTkYbjnvrvO0s6XrFLS7esUd28cVyyr2hG5RM1Ty +lW78PLfx9q9qy4tiznUzdE4NIaaQ3v9U0z87xwiJX58fzQzITrCV2T/aCo7z0riNntt 4LwK/EowExUE7UEybUqidLPOpyxgLOWXFTDvkiNcqLfvPLfbLaIAnp+rAdFDFjE5UUPP jSjJDYLdThrK/hduAse1x65qLmbtmmauF1dC+ploOJK79MOpA7baZpTRYPUxkPR9WRHV rebg== 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 v10si991411edc.224.2019.10.09.02.04.08; Wed, 09 Oct 2019 02:04:42 -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 S1729883AbfJIJB3 (ORCPT + 99 others); Wed, 9 Oct 2019 05:01:29 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:52718 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726579AbfJIJB2 (ORCPT ); Wed, 9 Oct 2019 05:01:28 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 753B350DD7A12F2FFBEB; Wed, 9 Oct 2019 17:01:26 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Wed, 9 Oct 2019 17:01:16 +0800 From: zhengbin To: , , , CC: Subject: [PATCH RESEND] rtlwifi: rtl8192ee: Remove set but not used variable 'err' Date: Wed, 9 Oct 2019 17:08:27 +0800 Message-ID: <1570612107-13286-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 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] Reported-by: Hulk Robot Signed-off-by: zhengbin Acked-by: Ping-Ke Shih --- 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