Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2001168iog; Sun, 26 Jun 2022 04:15:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tCx7W4ppd93x275iQ3j7YEmNevVQeKrRrAc/qc5CeHpU5/vCTglwrR4GeQVjHt+E6zuZzZ X-Received: by 2002:a63:115b:0:b0:40d:e7a0:37f9 with SMTP id 27-20020a63115b000000b0040de7a037f9mr1019324pgr.78.1656242156423; Sun, 26 Jun 2022 04:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656242156; cv=none; d=google.com; s=arc-20160816; b=QgfvDIeaNESbQsF9bielZuORprxEiDCLkPhY2mykvH722bbSzjuWJmRSLCQi2Jy5zF 1C7Pdzj+gsnJLlc7ob1GeqfprPpT4gvm3FMyADfUrnOiAbKtyMnyB1rpupmyVyyhPDxv 0CHKXdGZnnKerEBW98uNLhZ65Flntt3wBjv/q4Kl/Z2KgAxm1SBp9/okND+QYHmhTk62 Azz3wcbR/QAQQ2BksIaU9/bR+rNREblpTYWeljovtK2craznMWpUXX0IfFg55OS2HJUI gSf/Nx3udTZLmXf1iU9t7+bZHD8iHyPloTDdAJH4oPyTCS77oAIh6jimz/+kMuevvEyq 3kAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o0GW7CA8KUZY6d8aF+3/YcEueAIlMj5T+JesYfgsKuc=; b=CKu0vKnTAuLs8ysWm3/JGO5tPtds24sncV87e6vYLPxKzttPfgLKYmfxgzyWM+OLav QT0K0Vb7AubWHd6LLzj1VwbtXEdcfNuJWevEMJaTSnOizBXTyB4D4CzKUI0qdSaOj+3J msHgrrWu6MJjH7565JA8DvqElefScFOTKyzbv/F2q+DlPKoYhYRMJBvzq3TgWx7B/yeR 2M7omWe73J4ngX7oXMUrO+Gs0hBxjjKII04e/uZJXz0OBxd8Z/8+tEr4difq9TOcH9gV VwJ+L7wWxjyWPYwgrCeqAuJ1PbeXxmZksV/Isw8sBZq9E30byIuCcSFTdsi7GdI0vRD/ 2h0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=zqcujx+8; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u125-20020a627983000000b0051c29a77173si9396591pfc.167.2022.06.26.04.15.48; Sun, 26 Jun 2022 04:15:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=zqcujx+8; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234382AbiFZLMj (ORCPT + 64 others); Sun, 26 Jun 2022 07:12:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234375AbiFZLMi (ORCPT ); Sun, 26 Jun 2022 07:12:38 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A03614090; Sun, 26 Jun 2022 04:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=o0GW7CA8KUZY6d8aF+3/YcEueAIlMj5T+JesYfgsKuc=; b=zqcujx+80DTsCWXxoP71ZqxRYi uCkXs9GDLZ1MhcvWG0Y8ygzDPxwYNDA+VblI5CwPMk/Dfe6PjWXVIf2zeuDaxgkML320qxcWC2ekB 0LKBfFjCt2veWJeiYdqQo8uD10cpk0QhsZXz5h9bAdmMGz2FWhIiP0XrPuG9E6F/lG9E=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o5QBp-008Hu5-5d; Sun, 26 Jun 2022 13:12:29 +0200 Date: Sun, 26 Jun 2022 13:12:29 +0200 From: Andrew Lunn To: Sebastian Gottschall Cc: Praghadeesh T K S , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, praghadeeshtks@zohomail.in, skhan@linuxfoundation.org Subject: Re: [PATCH] net: wireless/broadcom: fix possible condition with no effect Message-ID: References: <20220625192902.30050-1-praghadeeshthevendria@gmail.com> <458bd8dd-29c2-8029-20f5-f746db57740a@newmedia-net.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <458bd8dd-29c2-8029-20f5-f746db57740a@newmedia-net.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sun, Jun 26, 2022 at 01:03:57PM +0200, Sebastian Gottschall wrote: > Am 25.06.2022 um 21:29 schrieb Praghadeesh T K S: > > Fix a coccinelle warning by removing condition with no possible effect > > > > Signed-off-by: Praghadeesh T K S > > --- > > drivers/net/wireless/broadcom/b43/xmit.c | 7 +------ > > 1 file changed, 1 insertion(+), 6 deletions(-) > > > > diff --git a/drivers/net/wireless/broadcom/b43/xmit.c b/drivers/net/wireless/broadcom/b43/xmit.c > > index 7651b1b..667a74b 100644 > > --- a/drivers/net/wireless/broadcom/b43/xmit.c > > +++ b/drivers/net/wireless/broadcom/b43/xmit.c > > @@ -169,12 +169,7 @@ static u16 b43_generate_tx_phy_ctl1(struct b43_wldev *dev, u8 bitrate) > > const struct b43_phy *phy = &dev->phy; > > const struct b43_tx_legacy_rate_phy_ctl_entry *e; > > u16 control = 0; > > - u16 bw; > > - > > - if (phy->type == B43_PHYTYPE_LP) > > - bw = B43_TXH_PHY1_BW_20; > > - else /* FIXME */ > > - bw = B43_TXH_PHY1_BW_20; > > + u16 bw = B43_TXH_PHY1_BW_20; Hi Praghadeesh I assume you took a deep look at the FIXME, understand why it is there, looked at the datasheet etc, and decided it is not in fact broken. Hence it is safe to remove the FIXME. Please could you summarise your findings in the commit messages. Andrew