Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1997681iog; Sun, 26 Jun 2022 04:10:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vFXSQcRn/tySbKuZT8s1jGvsRp13p7zB4SNvOzyL62TUmOO1FYC/eL8UkmXsUW0xrTsPM5 X-Received: by 2002:a17:90a:e2c5:b0:1ec:ea7f:a85c with SMTP id fr5-20020a17090ae2c500b001ecea7fa85cmr9637415pjb.232.1656241821556; Sun, 26 Jun 2022 04:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656241821; cv=none; d=google.com; s=arc-20160816; b=GucIG49V+Ys4aAlTTi6m03ByvBwojIR95WlMWM+12gIbHUyrzofVvHdqsARAJRQWFA Z8BYmWb5C9Px15i1Fof/M1mIsGeit5dH9+VKsmaoNeg/qLPvss121Exn4OTxcrKBQoHQ RDqhw2o54gZELQEK2JoNSmYmqzk5DqSdhII+ovaNuPpBZ00ns1B32kY4lOidv/xq3l8p xU47oMyGTCw8U4lE+uZfugqMSVPg1QJD/CdGD5xZLUhoMD++rxWaqFxkSG3NEVntIeLp QAGgj3+Y3tRgyHGbGAFZQ+Yn4EvlmDmCk7hE0c2vvPApPjRpWkZY4biEEqQ3xH+Oc+Yi Kl8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=XnI9Q3by0BUUWFODoPrHJkxlZ4k9cfSKEiKhN+gic24=; b=DRl9SXUphyuaJqn6ukngFXwjadk0tcYx4COQ+ADjCjROZ8YfNTdAShfNzlfTpBFhGV 6prx8sEM4N52EFZwGL3BfQPTTpsz6qO+VXJgULxFS0EeLnpfFHg+Ohz2ja+zbKoD+F2B G2WpMRtfSdU37AFBeOuTDwyG1LQ0HcjEwCL6CllVIOGqy8zw3Bxh83b9K5FcbtGY8spi Fw+YyVGhakFWrFxocDHF7vYQYr/lFQR8wAOTIbe1i+RJ/1/1SpnwOK4FJItgicTyvfGx LV3ltmsE3zxhgqxs+zrDlp3v8fvTI66k+NFMWm0+938C8hfA7fEYQGzDSc070cIzmTGf 3gRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newmedia-net.de header.s=mikd header.b=U7TcO6sQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a17090a718600b001df61ee6d23si4538256pjk.53.2022.06.26.04.10.13; Sun, 26 Jun 2022 04:10:21 -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=@newmedia-net.de header.s=mikd header.b=U7TcO6sQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234237AbiFZLEH (ORCPT + 65 others); Sun, 26 Jun 2022 07:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbiFZLEF (ORCPT ); Sun, 26 Jun 2022 07:04:05 -0400 Received: from mail.as201155.net (mail.as201155.net [185.84.6.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72A0E637E for ; Sun, 26 Jun 2022 04:04:03 -0700 (PDT) Received: from smtps.newmedia-net.de ([2a05:a1c0:0:de::167]:59818 helo=webmail.newmedia-net.de) by mail.as201155.net with esmtps (TLS1) tls TLS_DHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.95) (envelope-from ) id 1o5Q3a-0008RK-2p; Sun, 26 Jun 2022 13:03:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=newmedia-net.de; s=mikd; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=XnI9Q3by0BUUWFODoPrHJkxlZ4k9cfSKEiKhN+gic24=; b=U7TcO6sQLVTGcG5hcmhwRI50yvKgjH1IPdo5PZUKh09HU2GT0Z5nzS3qk3131WVWaw1x2L0IWENtAfuSDeDCMwr3rRE0TH7NDCmX+AhXxSuELRK8wEoYBl3GseFhDF1QWdM1Ie+xCkF+011vzW7cb5OqSqV6qU/OyGq0XrGegTk=; Message-ID: <458bd8dd-29c2-8029-20f5-f746db57740a@newmedia-net.de> Date: Sun, 26 Jun 2022 13:03:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0 Subject: Re: [PATCH] net: wireless/broadcom: fix possible condition with no effect To: 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 Cc: praghadeeshtks@zohomail.in, skhan@linuxfoundation.org References: <20220625192902.30050-1-praghadeeshthevendria@gmail.com> From: Sebastian Gottschall In-Reply-To: <20220625192902.30050-1-praghadeeshthevendria@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Received: from [81.201.155.134] (helo=[172.21.254.4]) by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1o5Q3a-0007e2-HQ; Sun, 26 Jun 2022 13:03:58 +0200 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, 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 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; Can you check if this is a possible register typo? > > if (0) { /* FIXME: MIMO */ > } else if (b43_is_cck_rate(bitrate) && phy->type != B43_PHYTYPE_LP) {