Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2030183iog; Sun, 26 Jun 2022 05:04:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uEjQsZIEeZKCxzqaxR/wSmgDDKzkNv545E65fdMj3p9dIk9/gmaxKSe99dh90rLvffBO6S X-Received: by 2002:a17:902:f606:b0:168:ecca:44e with SMTP id n6-20020a170902f60600b00168ecca044emr8961055plg.144.1656245046425; Sun, 26 Jun 2022 05:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656245046; cv=none; d=google.com; s=arc-20160816; b=eEikZCWDyUakV1Lry248kD1ZP6QwLt0fXfc4X7i1r8jww/7I9PQ3cHpEVVfU0caXik JUn2jCm7JyuaDb07P0b2inZnAZvH48GY6+LHFagjoYC5ELl6YKgnCViSlVeaFfG/S/oQ Dc6i7frh9h+H26F84Y73E4fN0Q9VH+DJn1IMjS9mvwiz1+ZRIb2YziWPPLPdHADTNr49 kXq0reFYrjq3yZSSvPBi+NWa6WIX/9UKSBp5lMk7BcBuFL6c4izzk2sTn0UiiWMWaxKr 21j1+HSXTwDjkugJVIJCnhTv03bSgTwcNtdKS+U72cLCksEtI9v2jXpfMi3drXm8NAqJ /H5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date; bh=kit/NThdI+OiZdckAT5qVrQPzLikMB2CtB501BzvOOw=; b=MxaN8KCk47C9r+bXtDOdof333n6VobqFoppt5Dj+oIjME9e5R6uhJFdfOB2t0u+sTa CoSzVqro/nNRqkooR/yoUUFm2VLvsPl+uz6c6+75AO483iEL8U+d78DH2Ca7DXy0qumT 8nyTckeZLR0376pAOm6MbUJJEwnzTU7FY5MerFDEiDMsr8Ku5N9GFvRgyPWFe2tqeIGc 7hzAdUyBLu2lACjN0DJXoxSa+eAUFjaEawNCc35fYUBgdLXuzZxb1GxhDtUBl3vBahL3 5uhx0X91lBfbcmo/PTSrman/L/Dxbg74uxuEM2fGRbI9CgeWWrP8tq6b6RPwTnrCowkE bJCQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y9-20020a056a00180900b0051e756bec27si12307222pfa.146.2022.06.26.05.03.52; Sun, 26 Jun 2022 05:04:06 -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; 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 S234073AbiFZL7K (ORCPT + 64 others); Sun, 26 Jun 2022 07:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiFZL7J (ORCPT ); Sun, 26 Jun 2022 07:59:09 -0400 X-Greylist: delayed 2379 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 26 Jun 2022 04:59:06 PDT Received: from bues.ch (bues.ch [IPv6:2a01:138:9005::1:4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87BC11460; Sun, 26 Jun 2022 04:59:06 -0700 (PDT) Received: by bues.ch with esmtpsa (Exim 4.92) (envelope-from ) id 1o5QIF-0002eX-RG; Sun, 26 Jun 2022 13:19:07 +0200 Date: Sun, 26 Jun 2022 13:18:37 +0200 From: Michael =?UTF-8?B?QsO8c2No?= 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: <20220626131837.622a36c5@barney> In-Reply-To: <458bd8dd-29c2-8029-20f5-f746db57740a@newmedia-net.de> References: <20220625192902.30050-1-praghadeeshthevendria@gmail.com> <458bd8dd-29c2-8029-20f5-f746db57740a@newmedia-net.de> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/gLIzHQzsO8pBgS_8XdvwdPb"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 --Sig_/gLIzHQzsO8pBgS_8XdvwdPb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 26 Jun 2022 13:03:57 +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 =3D &dev->phy; > > const struct b43_tx_legacy_rate_phy_ctl_entry *e; > > u16 control =3D 0; > > - u16 bw; > > - > > - if (phy->type =3D=3D B43_PHYTYPE_LP) > > - bw =3D B43_TXH_PHY1_BW_20; > > - else /* FIXME */ > > - bw =3D B43_TXH_PHY1_BW_20; > > + u16 bw =3D B43_TXH_PHY1_BW_20; =20 > Can you check if this is a possible register typo? I think use of this name was intentional. The code is marked as being incomplete with /* FIXME */ This change removes the FIXME. Which is bad. It doesn't improve the code. It reduces code quality by removing the incompleteness documentation. Please leave the code as-is. --=20 Michael B=C3=BCsch https://bues.ch/ --Sig_/gLIzHQzsO8pBgS_8XdvwdPb Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEihRzkKVZOnT2ipsS9TK+HZCNiw4FAmK4QI0ACgkQ9TK+HZCN iw6qfg//Xz4FgwF/d8Elx8vDBrIjZS+3IeOuZoLP3Ljiz/YHjDRKdcZHG8fcm4c5 zsxT27VyXc466fOKCM+dV7ArdXGdkAPBT+8G3Z0v7EBoBxbj91prW+dc2Oa8mdxH o6YDR0cqjXT+/3tMO9hasuMoembusnmhMoiWkIm6Lc/s8MzvKPLRVxRqknhNMR1o wiamTMmM8cUyBcalQWg1rJ0E8WWy7gq0RHb51vaqVpMe+KmfCQLKIm5q4YbOEXb2 ol5dC/RFPeCNgF2zQEJGrqnNPbAVgncsaA21W4D1lLlXNmz0FO+LwVuK5tIK7/5z oDIBBIcbQsHR15j5fkmpe5ykhJfIs4q7XwauYTvaVwTC/eX+/0jPT3MuKplEEK/m D6FGvVkvmnzSns/m1DOZB/gpuPZvf0qLi1X+AH4gtxp4PbLRTIgPkS0I7YNpdEju xjc0IVK6a5LKwrseAZKCkT9EC9zPPkg1gN0VMNlP4H92UT2/CCOeIuDgdJitVkE5 waItsFQpIIvAcnkcYe5BEW4toqkFtD1snbKPHinDDpD6OmwvpQvdILwCmkOFBuQU 0W+F2d0BTcbVvJl8m/Qj9jv43FF5PUu5WsbGN7VKdOnFXFcnsyn+t5166P3tuy1n wH6UR+MWJ+eo533M8jq9pZdv59A7S+rJlQ115di4Pa4YffWQ8z4= =dwmE -----END PGP SIGNATURE----- --Sig_/gLIzHQzsO8pBgS_8XdvwdPb--