Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1101448pxj; Sat, 29 May 2021 03:16:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaotiqbwbgqoP3+j23XExJTDS0IuoFWzyDNcTnlkNo4JK7d383x6+feS91I0oc/Km7FgzI X-Received: by 2002:a50:afa3:: with SMTP id h32mr14770932edd.202.1622283419276; Sat, 29 May 2021 03:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622283419; cv=none; d=google.com; s=arc-20160816; b=nMvlFtjkKnC2ev4Tlnd9si7Y+OShh5xNUZMlXkyAGLYt4EzFrDgsBt9e3lKorYYYdu tHFuuZ4VKANt4J/6qfkCJR28xyJVtQFG5F/GtvWXfyR1OGk3mVyTRahNjcIh0ulMImPv aruR0FBS1Cl9Jzkn4x+6E86lQoyfUDUl1N+QHUhdEA6p5hiX2W0H821TaGqrzmLS0xnW muh9YfM2mWz4Hr8W0ROpWvXUCWetnMt5l4HUHfuekbjp+fFzvrz2BDZgw/s61f6UmPvT MiuW4xpL+gzWvXIPN/9fYMTl0gwBCSeW9c8ZJaPg8qDpjJTRYjjeEeVT9vh4rBPNTAPb 8uLw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xZOqrP/mg2He+M34LSnQjj9zQWVkgZE7mCvGn/7CeN4=; b=bypc9J7opfj9bYvSFeEJICV/pGQjbm/TjXElvzN182O/qSRmLqLwM/EgNRVOUYJpXk lhTjsovYC3N/fhJioLWJwrafcxJ8+i38eiCD2f3/McsJPPaTMCWpH7CKAGUPQNy8qt9X MeSjN1WUwUm8r+2VNH20R6w9Na6tTfTxCCFfwxREzpBftmCotGnJ9n9dSi3a5E2NbugO iuWqPI4qiMOq35qKTPPdYFKwXOj5x085CTwtSffOcVjdaKL5yIJ/Gwpf+2uxEIDV5wN3 KMNqlDzgfRBsr2VgNmdaP052Hy1wLnU9n49BEsvkvV9ol6zMmHHAH76Sf78za5pWqqxG GVuA== 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 mp6si6650233ejc.146.2021.05.29.03.16.17; Sat, 29 May 2021 03:16:59 -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 S229612AbhE2KQt (ORCPT + 99 others); Sat, 29 May 2021 06:16:49 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5142 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbhE2KQt (ORCPT ); Sat, 29 May 2021 06:16:49 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Fscms1h04zYmyg; Sat, 29 May 2021 18:12:29 +0800 (CST) Received: from dggema762-chm.china.huawei.com (10.1.198.204) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sat, 29 May 2021 18:15:10 +0800 Received: from huawei.com (10.175.127.227) by dggema762-chm.china.huawei.com (10.1.198.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 29 May 2021 18:15:09 +0800 From: Yu Kuai To: , CC: , , , Subject: [PATCH V2] staging: rtl8723bs: core: rtw_mlme_ext.c: remove deadcode Date: Sat, 29 May 2021 18:24:31 +0800 Message-ID: <20210529102431.3173753-1-yukuai3@huawei.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20210529100137.GA1416@agape.jhs> References: <20210529100137.GA1416@agape.jhs> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggema762-chm.china.huawei.com (10.1.198.204) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'CHECK_EVENT_SEQ' is not defined anywhere, remove the deadcode. Signed-off-by: Yu Kuai --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 97b3c2965770..2b95a49ab469 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -6006,7 +6006,7 @@ static struct fwevent wlanevents[] = { u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf) { - u8 evt_code, evt_seq; + u8 evt_code; u16 evt_sz; uint *peventbuf; void (*event_callback)(struct adapter *dev, u8 *pbuf); @@ -6017,19 +6017,8 @@ u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf) peventbuf = (uint *)pbuf; evt_sz = (u16)(*peventbuf&0xffff); - evt_seq = (u8)((*peventbuf>>24)&0x7f); evt_code = (u8)((*peventbuf>>16)&0xff); - - #ifdef CHECK_EVENT_SEQ - /* checking event sequence... */ - if (evt_seq != (atomic_read(&pevt_priv->event_seq) & 0x7f)) { - pevt_priv->event_seq = (evt_seq+1)&0x7f; - - goto _abort_event_; - } - #endif - /* checking if event code is valid */ if (evt_code >= MAX_C2HEVT) goto _abort_event_; -- 2.25.4