Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2656461pxj; Mon, 31 May 2021 07:32:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysHNLGqLlVsiiJbIx5Wj6RExX+Mogpeg6R9LBEJBbwqgGl56lOWqzcT77ZuBH7PX4TAZxL X-Received: by 2002:a5d:914f:: with SMTP id y15mr8226688ioq.196.1622471569145; Mon, 31 May 2021 07:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622471569; cv=none; d=google.com; s=arc-20160816; b=XP7Ab9iVHD95rKY8eVFBS3fEldq3S0712Bp4hqQFUtBGyrE5aiTxm3WOvi3xM8JMEF q8gm1Fbe2k/gJUEs7gh0UAAMIHupjY+BGGCtzpXVYep9d1uLiXm4+fAttu9j9mJevlqt TYNatoDIaaFzJ26k9ssUo5OotK1bRe/5vcn+ON2JAK1HB55tZMKfiKRKEzuhhl4q6Erf E11RFfqYDWDqbQ+7X8kYp7ValwlSUG98tRYDbv4kL/cIXl5XjdsyTenJWtysaMgi/8kN mteXQWgghAgdwC+johcDK7gvZ5ETxG9er7hr2phoCIBSxnh7m6ePM+I+J9wXyHWegfqo 3Rkg== 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=WBTD+FDHanp7UVkprmQlMKJecqJSz/wIkBByaz3f7HA=; b=KK92tW8ghau79MQCDoNj2URh3KVzEogb77VsCySjuUUUOYeFnRxwsr609QlX3H+eSd Tu0yYoLNlW+LIOMm462AKqMNuYtDxGUPOS/XRfDT2XUuMsCSwpph1LwNWQ/z52p0td1G Ye3upn8anF9l6Pvl5NKhi2oMDkydppzJu0VjDCQRMGu8jT6xOfwDdoGZ+lp0dxp4HbAX KwIHnj5NBxOZP1LsZJUqN/JkR4WXTLjZZQse+rbyD3E48PtppFO8o9UxoAQ9TkdC2EeE eOuB2OOA3P5qWkDgkVkn5ZZw5gAssfGL7rCUH+COLIyNHEw7qaSpJpoz1iBO//wKq3MZ 8arw== 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 u5si4438880ill.118.2021.05.31.07.32.35; Mon, 31 May 2021 07:32:49 -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 S233449AbhEaOda (ORCPT + 99 others); Mon, 31 May 2021 10:33:30 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2802 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbhEaNy4 (ORCPT ); Mon, 31 May 2021 09:54:56 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FtxTF6Q6ZzWpVJ; Mon, 31 May 2021 21:48:33 +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; Mon, 31 May 2021 21:53:14 +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; Mon, 31 May 2021 21:53:13 +0800 From: Yu Kuai To: , CC: , , , Subject: [PATCH V3] staging: rtl8723bs: core: rtw_mlme_ext.c: remove deadcode Date: Mon, 31 May 2021 22:02:34 +0800 Message-ID: <20210531140234.3352465-1-yukuai3@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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 --- Changes in V2: - remove dead code to fix unused variable. - use a new tittle. 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.31.1