Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2614491pxb; Sun, 17 Oct 2021 20:33:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpgdZqzUJH8B/FzSuuUFMf4ooTca8/p2s1wix4OcZ4spUP9X3RPtnUEeBCpfO9xCm/Rebd X-Received: by 2002:a63:2c15:: with SMTP id s21mr15567367pgs.189.1634528018363; Sun, 17 Oct 2021 20:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528018; cv=none; d=google.com; s=arc-20160816; b=vVfkfkkbMnudMPPBXhuAbzU9WsIYsgI6cfe4NQhoYzino2sKlq6MFRz/9NK4T+5l2g ZeqKZrw08TAmr5s6QOfZAc2thXJmZckYQHVIwRHNaSMdfcqKbxqhsBEPij1/paP+Ruz8 y5jlvh1W6YPeeGzFcoMqYkVAmgp7ykkXJmDV8EoHxKGWvYZOrlhPo/oEhjjRUOt+D4AC VEsvRPAj9oUTYF/FRwUdoT7LpRYqDy2YOTKt6I2XfSmy0jaAio8tTYZtfBGPg1RvPDjX zQrC2WA12xr1ZefTW1qZF+3dmjCZ90Y1NeFYoXyOJY6WEXVQYRviXmI7ThBl+Zve1vXa O0/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vWmxlvL/WIDVLYlMCg+fbKRiAkQQWi83EL2sd3Fcv6s=; b=YmQZsEd4Mh+bOQ8c6ya+yM+FvZHk58Hnq8qgmiPKZOIK+vlF5v1CiEWOjfjYbikwI4 UScr2yD/5dcFyoEYGZUHbfxBbWKl6g44mjT0P04T6n8/rLrS1LCob6gK2ujOFSIbawak qf/k19ff05kV5C9dejYL8D/t8CfL6L46VAKYgDRYsd6d/mRm33iQCqL5N3Cf1euMSfop NCyxEvnWPbdnQwv0Bv6U1VFRDm7YfRPEwbi+QSIxh7aq2RKT60qDe2GbrVRLaZbGTmEE qz3DIZUOEamlWIU/jpMZGIx0gHgVotymcXxAxsAcXeKSpgoP1yc1LUK8P6wxL6uHkmHo t7Hw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w202si22734037pff.339.2021.10.17.20.33.25; Sun, 17 Oct 2021 20:33:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236614AbhJPJqH (ORCPT + 98 others); Sat, 16 Oct 2021 05:46:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236472AbhJPJqF (ORCPT ); Sat, 16 Oct 2021 05:46:05 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C828C061570 for ; Sat, 16 Oct 2021 02:43:56 -0700 (PDT) Received: from martin by viti.kaiser.cx with local (Exim 4.89) (envelope-from ) id 1mbgEJ-00039Y-L9; Sat, 16 Oct 2021 11:43:51 +0200 Date: Sat, 16 Oct 2021 11:43:51 +0200 From: Martin Kaiser To: Michael Straube Cc: gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] staging: r8188eu: remove ODM_AntselStatistics_88C() Message-ID: <20211016094351.ntxyhsycadtz5yv3@viti.kaiser.cx> References: <20211015163507.9091-1-straube.linux@gmail.com> <20211015163507.9091-5-straube.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015163507.9091-5-straube.linux@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: Martin Kaiser Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thus wrote Michael Straube (straube.linux@gmail.com): > Function ODM_AntselStatistics_88C() is not used, remove it. > Signed-off-by: Michael Straube > --- > drivers/staging/r8188eu/hal/odm.c | 21 --------------------- > drivers/staging/r8188eu/include/odm.h | 3 --- > 2 files changed, 24 deletions(-) > diff --git a/drivers/staging/r8188eu/hal/odm.c b/drivers/staging/r8188eu/hal/odm.c > index 28bd6f36cddd..d3d13164ca8f 100644 > --- a/drivers/staging/r8188eu/hal/odm.c > +++ b/drivers/staging/r8188eu/hal/odm.c > @@ -1016,27 +1016,6 @@ void odm_InitHybridAntDiv(struct odm_dm_struct *pDM_Odm) > ODM_AntennaDiversityInit_88E(pDM_Odm); > } > -void ODM_AntselStatistics_88C(struct odm_dm_struct *pDM_Odm, u8 MacId, u32 PWDBAll, bool isCCKrate) > -{ > - struct sw_ant_switch *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table; > - > - if (pDM_SWAT_Table->antsel == 1) { > - if (isCCKrate) { > - pDM_SWAT_Table->CCK_Ant1_Cnt[MacId]++; > - } else { > - pDM_SWAT_Table->OFDM_Ant1_Cnt[MacId]++; > - pDM_SWAT_Table->RSSI_Ant1_Sum[MacId] += PWDBAll; > - } > - } else { > - if (isCCKrate) { > - pDM_SWAT_Table->CCK_Ant2_Cnt[MacId]++; > - } else { > - pDM_SWAT_Table->OFDM_Ant2_Cnt[MacId]++; > - pDM_SWAT_Table->RSSI_Ant2_Sum[MacId] += PWDBAll; > - } > - } > -} > - Yet again, that seems to make a bunch of variables unused. I guess that antsel, CCK_Ant1_Cnt, OFDM_Ant1_Cnt, RSSI_Ant1_Sum and their Ant2 versions can be removed (haven't tried it yet, though). I'm really curious to see what's left when we're done with all these removals... Best regards, Martin