From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34DC1C49EA2 for ; Tue, 22 Jun 2021 09:58:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A6086135F for ; Tue, 22 Jun 2021 09:58:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbhFVKAS (ORCPT ); Tue, 22 Jun 2021 06:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbhFVKAR (ORCPT ); Tue, 22 Jun 2021 06:00:17 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8B9C061574 for ; Tue, 22 Jun 2021 02:58:01 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id h11so5411983wrx.5 for ; Tue, 22 Jun 2021 02:58:01 -0700 (PDT) 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=XGm5a/Fe5N5jRf7hJWwEELPPpr6Kdx/ELnvMfUGOCzM=; b=KnOYTGoqCw3yaoYvo6WJY/UiRv5L8oNDkJMj3qqXhtSJC835E+qd6HXIB3rnAMslG3 FlJpyUZu60Z/+0jhexM/YXJPwtu5aYO7Asi5ExTZnWujKsutCzN15EN3Ore2qHi1b4tx lhGjv/I1H69Vie0p2xnUX+GmE4FqwivQOUxPVX65ZYiQBgMag8JKa9XxdkduVElUYOuV dMumUbCSxr9Nq4IzKk9X8yr0ko06dB52YhTAb7A+t5tMyccXmDsMUlTFDqlOUrSNp3Md 0IptmioZF3w+PnZVEofJLqr1bSiTHTyRx4oOiOyEjJ1tMSUTh4C9JReJiM6m53eU0oRA WdMA== 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=XGm5a/Fe5N5jRf7hJWwEELPPpr6Kdx/ELnvMfUGOCzM=; b=V5XT66E+XkC7FCuSetlpE2zrBzghcABpw93wXNPc6qoTMQj4vstY2isVRowKDGLNHF lqNC6rAhvqa1Tb7Hmt8zHZo4bP2BNAQLBHF1lMQjtb6hCzY/hRW+EjQcAiQuWmAS9O30 pO2gD3At63pW/5uWGZ8/i+qFp81+o29G05mpOCGcogHT28GWroD9IQ9HRoEu4k3hRnIa rqNwj94ry8z62rfuVTr5xD24I+epd23KC25CznbFtTZK4Wj6S6x/7PnQo8D1Qeed1xka Uqg5mHcqy83jD7N0dPdcgE3uIaE+BoJRBuSjEGCzZTFqFhVytNpEW6eB5Og7ts4XtHHu Vs8Q== X-Gm-Message-State: AOAM532K06Kn4gWS7Z1nCpXUhFTxpkaiJLWCG/0gpRH+DKa2WwJdRdiJ e3fENht9XxSNaHwNvfBVBNOazQ2jG0IaVA== X-Google-Smtp-Source: ABdhPJxKxy5rTDAIOoB35xJ/WuhJV0nmoikd+B5VMZ3tQEvzlCfODC2nIz+tWU0Yr5YpQv+yJ34l0A== X-Received: by 2002:a5d:6a8b:: with SMTP id s11mr3645664wru.88.1624355880057; Tue, 22 Jun 2021 02:58:00 -0700 (PDT) Received: from agape.jhs ([5.171.72.34]) by smtp.gmail.com with ESMTPSA id m184sm1875029wmm.26.2021.06.22.02.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 02:57:59 -0700 (PDT) Date: Tue, 22 Jun 2021 11:57:57 +0200 From: Fabio Aiuto To: Hans de Goede Cc: gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 12/18] staging: rtl8723bs: remove VHT dead code Message-ID: <20210622095757.GB1426@agape.jhs> References: <20210622091602.GA1426@agape.jhs> <4f128bd2-b84b-132e-c75f-0030701a8a9b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f128bd2-b84b-132e-c75f-0030701a8a9b@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 11:19:36AM +0200, Hans de Goede wrote: Hi Hans, > Hi Fabio, > > > Moreover I have been quite conservative, for I left untouched HT indexes above > > 7 which rtl8723bs doesn't support. > > > > So IMO I think this patch is fine as is... > >> Perhaps this entire block can never be executed ? > > > > the block is executed but there's no register write happening. Just > > updating of values which will never be fetched. > > Ack, my bad I was under the impression that phy_SetTxPowerByRateBase() > would actually do a register write, but I checked and it just updates > some unused table values, so dropping this code is fine and you can > keep this patch for v2 of the patch set. > > Regards, > > Hans > thank you, what do you think about what I replied about patch 1, shall I remove the '> 14 if block' or leave it as is? Do you think is necessary to keep the conditions inside the block and pack them? I would leave as is but is my opinion... regards, fabio