Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2398227rdg; Mon, 14 Aug 2023 00:43:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZSncJ8ZZSmV6t2G2UGaQAubOnwk19jYJIDS+3WqzKVNxKZxwCS77HeiJBV4zNbZQWjW/p X-Received: by 2002:a05:6a21:35c8:b0:13e:aede:f380 with SMTP id ba8-20020a056a2135c800b0013eaedef380mr8071024pzc.34.1691999031043; Mon, 14 Aug 2023 00:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691999031; cv=none; d=google.com; s=arc-20160816; b=Qj7kN5uVxePrHqGvwXTyWlYRvUGjuH/GiRU6AevFDNLrJNHuHU+3Jdg4RU7IR7XKPz FjxaqBIi9erqnqnKnKtxBXmIPprnujBRgsobKBfjyj9ISzgRKOXcbNA9zswK2PlVEOQ3 rnhBsotdolPaXb+h8EO3vi0ghn4bRgLPdLu+vFdlcG60XXmSkSEMytEyZv2F6kT/Lywi ISy9bk2hrv1sFBmS9MVIUXdZSbY2x633K5vbuHM/fYKkR28nIHD52LZLrmieHQX3LMW1 fe5BiZ+ujKTDunJSTMq3EMjRdrGPRO8DqpC5E3pUXTkHoEh415GU2HdmGJbxHAsfcoMU 7QNw== 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; bh=7k5E2Nc7FVlsZKN+rmApBfYYz3xcQfySerMw+7Xoibw=; fh=OkVY7JtKB3wNa1um8NLgC1zQ7W0GXv+wUkgL9cRCYTI=; b=zTJmk4nJaknMjTHI+4X7tGjb0re1n5f4ePwJbVWygSF6vjIo+qrJvfguCohAa87HvG Z+AoaiTbIqtL6Mrh2HZkwE+5zQ1irE+C18r0AcR5mJxUuPf8Ixcx6Wf6FbRv8JcZhRBs HAMmKGhqbvGg0TT8Vc3I++0lj0W1XduIg5E+kdMBUixX/TzwYBMqHGzWc6oQLJsAU0kn zIcYB1ifx0cQ8oeKHrqcCJTItnUpEVzIdXqFsl2P9bHA6xC6r9Y6LC995L+Tn7IggBg7 qWQaBK0wssFWHnTUhOtwcmz6aRvjk8W5L+jj2uvb1DlmAaL1RhieyIuPtvYBgupOiTKl A+Ew== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=red-soft.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020a170902d49000b001b9e9b21249si7772405plg.649.2023.08.14.00.43.43; Mon, 14 Aug 2023 00:43:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=red-soft.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232635AbjHNHYX (ORCPT + 54 others); Mon, 14 Aug 2023 03:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232569AbjHNHYF (ORCPT ); Mon, 14 Aug 2023 03:24:05 -0400 Received: from gw.red-soft.ru (red-soft.ru [188.246.186.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AFCBBE71; Mon, 14 Aug 2023 00:24:03 -0700 (PDT) Received: from localhost.localdomain (unknown [10.81.81.211]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gw.red-soft.ru (Postfix) with ESMTPSA id 8E5233E0CA5; Mon, 14 Aug 2023 10:24:01 +0300 (MSK) Date: Mon, 14 Aug 2023 10:24:00 +0300 From: Artem Chernyshev To: Jonas Gorski Cc: Franky Lin , Hante Meuleman , Arend van Spriel , Kalle Valo , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH] brcm80211: brcmsmac: phy_cmn: Remove unreachable code Message-ID: References: <20230813212343.245521-1-artem.chernyshev@red-soft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 179214 [Aug 14 2023] X-KLMS-AntiSpam-Version: 5.9.59.0 X-KLMS-AntiSpam-Envelope-From: artem.chernyshev@red-soft.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=none X-KLMS-AntiSpam-Info: LuaCore: 526 526 7a6a9b19f6b9b3921b5701490f189af0e0cd5310, {Tracking_from_domain_doesnt_match_to}, 127.0.0.199:7.1.2;red-soft.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1, FromAlignment: s X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2023/08/14 06:04:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2023/08/14 02:52:00 #21602132 X-KLMS-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Mon, Aug 14, 2023 at 09:19:14AM +0200, Jonas Gorski wrote: > On Sun, 13 Aug 2023 at 23:31, Artem Chernyshev > wrote: > > > > Since wlc_phy_txpwr_srom_read_nphy() in wlc_phy_attach_nphy() > > can not return false it's impossible to get true value in this > > if statement > > If they can only return true, then maybe their return types should be > changed to void as well? No point in returning a value when the only > caller is ignoring it. > > > > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > > > Signed-off-by: Artem Chernyshev > > Regards, > Jonas True that. I'll make those changes in v2. Thank you, Artem