Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp623493pxf; Wed, 7 Apr 2021 07:51:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1Do8XRhMbQpBcfHQslJE0AqR36fGI3MjLIHhakNTMS2yOrBfPA1rebx6gkF8FfHGxNL+e X-Received: by 2002:a05:6638:3010:: with SMTP id r16mr4034017jak.126.1617807096917; Wed, 07 Apr 2021 07:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617807096; cv=none; d=google.com; s=arc-20160816; b=nlC6GCe3kj10/ksa4tlmqqR/E9zaGteClrGwgW+RkkT99+oOjHDK6fyMo6mmU3t8hv sbPcollgawnkexPA+5ivjumu3a/JkJIePoMkl4zGPG806vMy/7MHWatr7L2IdcWHEJk4 XEt2D2y7WpgC4em8NFBf9mF/NpW5Pi3V7FUujwxDOcPPrGGpxad9bNBFT/KT19697SgU yVN0utTB4Ss5p7isInn+uc5A2XdxqiRSBkWX4Si7OcqdpNZkfq3X5MtXp86Bxwnj/xDu RLL5ijcsM5/cDFvhSKsiJJR9zUEjKtMLfowy0XsxBbP1iS1a1YPj9kIIJJSpT89xNGfp 779g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=JVlhVaHWiSoXMbaZXM4tR8MmUu1PRKQ3Z2UxpEkLqpU=; b=ipBNXCFOfDchQfWzIqdubf2DeBqZuxvnLS6W/6iubQgK1A9obW+7LVaagWb7a/tv5e j8fRIyEPBXn2EAmi27gZW2byXuA7sNTEBxttOxuPVMGaqDApKq16JNN3kRf0oqND8tuv AvznJSKXPs+0VgRWsKLN4Q24SIxkiNYxEhTjyMjlXeNCsbDYQq/LkktEnG7LaqAi78i9 KRMlCviRJm6DSrtsKdhYLKGEGviHyQ2o1KwkZ/9DT15QeToqybT2XvyDEhzs060Gzx8l IS74VOB53QA3pB1wO9uB5rVmh7YCNpv9YURvek8uuz8e3ywXlDu3ipaBQKda7QHuqzHw luOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si24586182ilg.122.2021.04.07.07.51.23; Wed, 07 Apr 2021 07:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344957AbhDGGHt (ORCPT + 99 others); Wed, 7 Apr 2021 02:07:49 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:40253 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbhDGGHs (ORCPT ); Wed, 7 Apr 2021 02:07:48 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R311e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UUlqnWU_1617775652; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUlqnWU_1617775652) by smtp.aliyun-inc.com(127.0.0.1); Wed, 07 Apr 2021 14:07:37 +0800 From: Jiapeng Chong To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] staging: rtl8192u: remove unused variable Date: Wed, 7 Apr 2021 14:07:30 +0800 Message-Id: <1617775650-42645-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/staging/rtl8192u/r8192U_core.c:3419:6: warning: variable ‘reset_status’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/rtl8192u/r8192U_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 9fc4adc..f48c042 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -3416,7 +3416,6 @@ int rtl8192_down(struct net_device *dev) void rtl8192_commit(struct net_device *dev) { struct r8192_priv *priv = ieee80211_priv(dev); - int reset_status = 0; if (priv->up == 0) return; @@ -3428,7 +3427,7 @@ void rtl8192_commit(struct net_device *dev) ieee80211_softmac_stop_protocol(priv->ieee80211); rtl8192_rtx_disable(dev); - reset_status = _rtl8192_up(dev); + _rtl8192_up(dev); } static void rtl8192_restart(struct work_struct *work) -- 1.8.3.1