Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1064327pxf; Thu, 8 Apr 2021 21:58:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkE4DZHgUP8/vuuUBpaKTCPDmCsgV6tZqa5QhlD1sBFY3rsBMG32yggGlc5Z/u5WcR4BQ/ X-Received: by 2002:a65:610f:: with SMTP id z15mr11512381pgu.360.1617944298819; Thu, 08 Apr 2021 21:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617944298; cv=none; d=google.com; s=arc-20160816; b=bnDatR/fprDjzBpIjojjnZI8IoUJnFUfSvUCRa+ok8PbGcBUfyMNGKR5aiS2RU7tf/ tAW+nKgaVuCd7l6I/+rsZItc6JoplOGotj2SCq6qk4oc2XVVe7N/xoe9/3GhqAQVV9z5 DXcvfCil+d5TJhAkNgf3ij0YijoSTUAZJEvknVC7AZQJHhoYvTL7dAAL2Y43+HvvuhSj aTUEHME/8nuWxM6QUY5vyDqRDvBYABm8SNR8yxhtVvzngUTBN1X+bdo6Ra/vLPaFRH5V +oFkjZhfhyM0Mc784J6oUF2NpAPSCdFqVq1ixBWffig7bGO7xUYeH4f3Xqqd2ErQeuTb IvPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=iRDgtIIrTHGP9qEIrGEWh7aBKN7rSdCmNg/Ypmpd4iU=; b=XRThKV58JxrU528dpfYQ844TmMgcCfW6pNhossM0F2pDihn2HnwqWS3knsjItZv/p8 xtaXoEOBlZJKLIXonYty6xJBtOA8LOB9Rd3jOT4QIC8lYP2NFJJeZie79fcZ2nraTenV JEfum2JKEKDQCjLvOWFPyeg1cA/oZ09hgSX2AiC9Tw6rVt4mOnREIkMtXnfJtf1R4vKc ZZFp/BwkOe8qST4RgfGXj2x2RedPEG+nZ8Qkh76iRPgWkDvjSlyoZTU6WU5v4g7p6Q44 lZPyWK636Jc0Abz72dPmnN95IcLJDvlLpKAU3pIArjKcz5ZXVNwkXlV6FwOb2HmoS7uU LPww== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gi5si1847336pjb.4.2021.04.08.21.58.06; Thu, 08 Apr 2021 21:58:18 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbhDIE5u (ORCPT + 99 others); Fri, 9 Apr 2021 00:57:50 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:16426 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbhDIE5o (ORCPT ); Fri, 9 Apr 2021 00:57:44 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FGm6Q0PZ2zlWqH; Fri, 9 Apr 2021 12:55:42 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.98) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 12:57:23 +0800 From: Pu Lehui To: , , , CC: , , Subject: [PATCH -next] staging: rtl8723bs: remove unused variable pwrctl Date: Fri, 9 Apr 2021 12:57:28 +0800 Message-ID: <20210409045728.125852-1-pulehui@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.98] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC reports the following warning with W=1: drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c:532:23: warning: variable 'pwrctl' set but not used [-Wunused-but-set-variable] 532 | struct pwrctrl_priv *pwrctl; | ^~~~~~ This variable is not used so remove it to fix the warning. Signed-off-by: Pu Lehui --- drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c index f2ab878babcb..f8c6028f89f3 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c @@ -529,7 +529,6 @@ static void rtl8723b_set_FwRsvdPagePkt( struct xmit_priv *pxmitpriv; struct mlme_ext_priv *pmlmeext; struct mlme_ext_info *pmlmeinfo; - struct pwrctrl_priv *pwrctl; struct mlme_priv *pmlmepriv = &padapter->mlmepriv; u32 BeaconLength = 0, PSPollLength = 0; u32 NullDataLength = 0, QosNullLength = 0, BTQosNullLength = 0; @@ -544,7 +543,6 @@ static void rtl8723b_set_FwRsvdPagePkt( pxmitpriv = &padapter->xmitpriv; pmlmeext = &padapter->mlmeextpriv; pmlmeinfo = &pmlmeext->mlmext_info; - pwrctl = adapter_to_pwrctl(padapter); RsvdPageNum = BCNQ_PAGE_NUM_8723B + WOWLAN_PAGE_NUM_8723B; MaxRsvdPageBufSize = RsvdPageNum*PageSize; -- 2.17.1