From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E196C43215 for ; Fri, 15 Nov 2019 12:24:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17E342073C for ; Fri, 15 Nov 2019 12:24:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="oTFgDV4D"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="j916EAZu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727567AbfKOMY3 (ORCPT ); Fri, 15 Nov 2019 07:24:29 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:50544 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727196AbfKOMY2 (ORCPT ); Fri, 15 Nov 2019 07:24:28 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E453960E0D; Fri, 15 Nov 2019 12:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573820667; bh=g6xe7iyjtAnHZF/FM9T/0U/255aCYUNGehEIvHnXysE=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=oTFgDV4DeIM92tYbqSStBkLgQH3dZTTzXMFPivt65UlK/hcux/7U2NYCm75r89HG2 u+MKUbQN2cN3m19Lzxx6khYOXDeBxtXtjoJoAsUdpS3oGAxJqWvadGP/hzAj+0K1EZ LKDZQGkghfbWfLG6JuvTLmvIB6EXMyJxrplD/oiE= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 786696030B; Fri, 15 Nov 2019 12:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573820667; bh=g6xe7iyjtAnHZF/FM9T/0U/255aCYUNGehEIvHnXysE=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=j916EAZu8O9hSzKISFJmirQge+Bw4idgBpZ6LdqSUfl1QxM7TebvhMHBButeml3wd YnbyTIEQ67h1sKQjHq63WuY/6e28y2rLuNyW1H+AWWubIBIERmlfEIJyEJIvWZDGyJ h4t77hz7ebmaHeUxxvALqqHolR7w10ho1OjJTxAI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 786696030B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] rtl8xxxu: Remove set but not used variable 'rsr' From: Kalle Valo In-Reply-To: <20191110104955.131246-1-zhengyongjun3@huawei.com> References: <20191110104955.131246-1-zhengyongjun3@huawei.com> To: Zheng Yongjun Cc: , , , , , Hulk Robot User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20191115122427.E453960E0D@smtp.codeaurora.org> Date: Fri, 15 Nov 2019 12:24:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Zheng Yongjun wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function rtl8xxxu_gen2_config_channel: > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:1266:13: warning: variable rsr set but not used [-Wunused-but-set-variable] > > rsr is never used, so remove it. > > Reported-by: Hulk Robot > Signed-off-by: Zheng Yongjun > Reviewed-by: Chris Chiu Patch applied to wireless-drivers-next.git, thanks. 38860bdf28b7 rtl8xxxu: Remove set but not used variable 'rsr' -- https://patchwork.kernel.org/patch/11236191/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches