Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1488862pxf; Fri, 12 Mar 2021 10:38:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGvLs0zNjnYWlBmdiSyYJ8qnjhOJ/DrNTiEW4LzMYx3nu+l54ctaMELhZ6gjcfug2rQBeH X-Received: by 2002:a17:906:73cd:: with SMTP id n13mr9841941ejl.535.1615574319584; Fri, 12 Mar 2021 10:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615574319; cv=none; d=google.com; s=arc-20160816; b=j0yh90b5Zyofz/NcjUmaNiYwVyxYzKhmkg0qX54Ap0hMzQ5XSHTtK7CMdgmGzeJCYE gqeJK77ypt+MmuXC/jvTaUGmaA8xeNMfnRK9JVzQJ6f/zWBXoV5Ii4VmrmfxZSZ+3cVn hxbFVY2PJPMugiFibFnbWvw1/jEfIFZjNXHo9fAeqNc8IiOjcx1WmJSxJo9VtEdjqXQT ktUx+bGYCzbV2OdmLi/CrnA+mMpwarX9AQmlkfFE0pS+3sg/AKsKsbyTKfDTLOl9VgLK sx3PfXcIqdrExPebwk1wXKiA9KHrIEYWkMbvIiA96mKvmlMBwWkdidVSYHm9ThkORXzs 15JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gefUvqZ+PVzm20AG/CnQcxDANW6owChYqRkVVyHl7s0=; b=dCe1Ax670Ji/cMBsJLnPTwVjyBr/l/fxpWbzKGGd6LbNopjsaF1tfVH07UBmhkmV76 WdjKaP5QlLVuOB2tWfS4yygHrHcOmRRiHNSw/YP249roVRHD0VgCVbmKIGyWgXD27dl+ qEFP069BG2TfuGQu54E2ZVR2L+sWJFkwOqSnxG9XGNt56+j5+JaL5Jd9JlIZQDRp7LTC TOYxl2VV4Sk8Hn2ClQ4KQ2DvvQx3o9ssZKFJHJr7j5VA1oxBnKHs6LBW6JyodT1UKz1c j5AvxGl8A8w/jHD4fyJGisG1ak6R/ADvV2175ZE6Y/2qiJpm285MM/t4XlPndc9bKRr6 mUNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tNfaRqIQ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si4482920ejy.93.2021.03.12.10.38.05; Fri, 12 Mar 2021 10:38:39 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tNfaRqIQ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233784AbhCLSeg (ORCPT + 99 others); Fri, 12 Mar 2021 13:34:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233756AbhCLSeL (ORCPT ); Fri, 12 Mar 2021 13:34:11 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 897F8C061574 for ; Fri, 12 Mar 2021 10:34:10 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id r10-20020a05600c35cab029010c946c95easo15719917wmq.4 for ; Fri, 12 Mar 2021 10:34:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gefUvqZ+PVzm20AG/CnQcxDANW6owChYqRkVVyHl7s0=; b=tNfaRqIQDc771K3h+DqnDik5p/3ktVZzOnsrDjc5aoWX8WfMrOAzxMvfKrdD54awI6 rmXNInKLormdl+pXjtXo5BX9k2AGDOagyvx2ObXqF2/5fppPG35i+Tg5P8Eh8m3poUpU 3CIPNHyC+q6BRKs7iyBVP2pTYahlj0phPySyETbVDcS0GXS58sVYb/qCHJYmzlG3qdv2 x8oJwtPCFCWmaJ1xdB9wAdEkGazaHyhcYOJ1UPu0LuNcxMcz7KCzv9g23WnQEKUvv2bz 63sc0pLttI7lwWElMMGugQVPEC7xHTYK+oKL/ZTRzZ1LcT9fSI3OvJN3lDFPUMDkWtkF PoZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gefUvqZ+PVzm20AG/CnQcxDANW6owChYqRkVVyHl7s0=; b=JZLa0DpyfFG1TBVbtPbkoefqwqFfk/JQuwiOSOuMMlhIetgpx4K7RC8huZNMWg8DL8 5RdU9K9wJAAXhab5oDb8GHOtFgLLV1/tS54RtnQmmS7ggYNWDK5j9S4KSL/nlIx0ZS7N Av10n5yuf2GOPebzUtLpnR0mlaSIWtp//SG42KALEEXP5YRnQoRZm5P7A85g7XAm0WXQ fQjMZut7/Ou+/s3J53PMQ9IEuxZf4GpDCaZ7+SS5vP/2+CIGCc6m4hyM7gEvyrrFzFQM zoA1i3QDmPbOTGVf3vuRlykLhVHWfoMFtsQ92qgXcPszdfnlzEJ3rrGHXoPVTZ6Jf6W/ ToXA== X-Gm-Message-State: AOAM530kqA87sMm071A5eFhT74uLocQ6qsqssJTZJ1PUToJUrsQwzC7x tf5GFbojV4XLlxsvHYb/hYs= X-Received: by 2002:a05:600c:4305:: with SMTP id p5mr14198573wme.58.1615574049308; Fri, 12 Mar 2021 10:34:09 -0800 (PST) Received: from agape.jhs ([151.57.163.80]) by smtp.gmail.com with ESMTPSA id v2sm24905188wmj.1.2021.03.12.10.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 10:34:09 -0800 (PST) Date: Fri, 12 Mar 2021 19:34:06 +0100 From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_TCP_CSUM_OFFLOAD_RX Message-ID: <0975dcb60dfb6abdc6a3233283908bd57472c225.1615572985.git.fabioaiuto83@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove conditional code blocks checked by unused CONFIG_TCP_CSUM_OFFLOAD_RX cleaning required in TODO file: find and remove code blocks guarded by never set CONFIG_FOO defines Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/rtw_recv.h | 5 ----- drivers/staging/rtl8723bs/os_dep/recv_linux.c | 8 -------- 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_recv.h b/drivers/staging/rtl8723bs/include/rtw_recv.h index b4aeb44d5d6e..078854a55a31 100644 --- a/drivers/staging/rtl8723bs/include/rtw_recv.h +++ b/drivers/staging/rtl8723bs/include/rtw_recv.h @@ -159,11 +159,6 @@ struct rx_pkt_attrib { u8 ack_policy; -/* ifdef CONFIG_TCP_CSUM_OFFLOAD_RX */ - u8 tcpchk_valid; /* 0: invalid, 1: valid */ - u8 ip_chkrpt; /* 0: incorrect, 1: correct */ - u8 tcp_chkrpt; /* 0: incorrect, 1: correct */ -/* endif */ u8 key_index; u8 data_rate; diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c index f52802f24466..78d5b6913467 100644 --- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c @@ -138,15 +138,7 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt pkt->protocol = eth_type_trans(pkt, padapter->pnetdev); pkt->dev = padapter->pnetdev; -#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX - if ((pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1)) - pkt->ip_summed = CHECKSUM_UNNECESSARY; - else - pkt->ip_summed = CHECKSUM_NONE; - -#else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */ pkt->ip_summed = CHECKSUM_NONE; -#endif /* CONFIG_TCP_CSUM_OFFLOAD_RX */ ret = rtw_netif_rx(padapter->pnetdev, pkt); } -- 2.20.1