Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp875435pxj; Thu, 27 May 2021 13:48:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybjX7SlW71s9AxKjksJbM+z+YFirSIiQWwpZKT0uAUKpcvSIs1mgAQHAGT+caELtb8HEGw X-Received: by 2002:a02:b90b:: with SMTP id v11mr5151762jan.1.1622148536333; Thu, 27 May 2021 13:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622148536; cv=none; d=google.com; s=arc-20160816; b=Soa/Dra0Tgv+Jyr+n5sQJVb1X7h83KztKC7B/+u0MydG/laaRoH3jFADY1auVb+SUT r7pJhV3LezYV1sKb5y+W5IhA6VW2UpgcR8w61eg6KnY0iE7gnb/WpRirESMco7TVmE0+ 2vKHn844UPPMOU1tF3H/Jl8oSbJ3AZLdzHXHxHt+1VDR/enbiBYS67gI2WYWIau1rr4Z 3RRvqYtM/3w1dBXzQV7Q3Zm4by3ZTtLq3QxIx4oo1n4iKkSwu/EdtdhFoItH8MzQ3nHq xweXBSkfi/5e4BH5vNwlE72DwYoIQmUKBHriCxxnoW9MIriJA+R6gcF+vJ7w1Fpv+SqV XR8A== 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=PKb/xIW4q6ukl5RIGtAgCsuIOmVLfdGsycTdTX4aXy4=; b=sPEoBsDbpZnLftBXmhQmvTDrjzCXksXnBsYxB6oN5KMYrItmh67OdgS89/bCHbCre3 xE1wGnsgOfnXNVKeJrp90pbd4INbQ2k+T8rheOTB4smuSGxikhIECbmkRMSU+p0KWhu/ PssQnIJLJMVMCdquhjg2DtfGwGfdEcORLsJbWzA8r+ZVhkSk75iRNKPhRfq5qwlNaW3N MAEx8W8kLcg9JqMOXps9beKGevUNt0ACGjpN4xjk7eNmMA4rwDkU1Z1+CY/6ka+Mja9E ts58LEK96NNopYKWYoIKF3S5rKwQz08fO6PlRM7PJwL3gYtP5pF+j8BKwuAVRpOYjJ82 S9kA== 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 k15si3213586ilr.47.2021.05.27.13.48.41; Thu, 27 May 2021 13:48:56 -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 S234281AbhE0LyW (ORCPT + 99 others); Thu, 27 May 2021 07:54:22 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5114 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234229AbhE0LyT (ORCPT ); Thu, 27 May 2021 07:54:19 -0400 Received: from dggeml767-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FrR2M077szYnBt; Thu, 27 May 2021 19:50:03 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggeml767-chm.china.huawei.com (10.1.199.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 27 May 2021 19:52:42 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 27 May 2021 19:52:42 +0800 From: Baokun Li To: , , , , , , CC: , , , , Subject: [PATCH -next] staging: rtl8723bs: Remove set but not used variable 'reason_code' Date: Thu, 27 May 2021 20:02:10 +0800 Message-ID: <20210527120210.321810-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtl8723bs/core/rtw_mlme_ext.c: In function 'OnAction_back': drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:1729:30: warning: variable ‘reason_code’ set but not used [-Wunused-but-set-variable] It never used since introduction. Signed-off-by: Baokun Li --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 9fc612fb736f..97b3c2965770 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -1721,7 +1721,7 @@ unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_fra struct recv_reorder_ctrl *preorder_ctrl; unsigned char *frame_body; unsigned char category, action; - unsigned short tid, status, reason_code = 0; + unsigned short tid, status; struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); u8 *pframe = precv_frame->u.hdr.rx_data; @@ -1790,9 +1790,6 @@ unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_fra ~BIT((frame_body[3] >> 4) & 0xf); psta->htpriv.candidate_tid_bitmap &= ~BIT((frame_body[3] >> 4) & 0xf); - - /* reason_code = frame_body[4] | (frame_body[5] << 8); */ - reason_code = get_unaligned_le16(&frame_body[4]); } else if ((frame_body[3] & BIT(3)) == BIT(3)) { tid = (frame_body[3] >> 4) & 0x0F; -- 2.25.4