Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2397733rdg; Mon, 14 Aug 2023 00:42:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzdUdNw8FIiouuq3L62XevZiPxFKOyAf2v5dFfRErqMBH5srNZs4git69DrGs7OhCnF0M1 X-Received: by 2002:a05:6a20:914b:b0:140:253b:b658 with SMTP id x11-20020a056a20914b00b00140253bb658mr9833611pzc.57.1691998937802; Mon, 14 Aug 2023 00:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691998937; cv=none; d=google.com; s=arc-20160816; b=k/AsITZPMT5QPth6SGHVK+bQ6IVv1KzUH1bF3IVdNymO1P78iOE4xhV/Y1tfUikMih EkNmsxbcpeprSpEpiYz9whOr24BnPdTNelVDrj2Yjm6MVAeeJZ8JEuTcLsLW9nxh8Adi 4FJM5fx4RdTsU/QVvy9EjbAxkvm8MjV+JGP+RHeH3zzWej2MBQOrAVaTXHZl9zRPcHGy rP25+1D69evP4L8FHhSL+upFl72aItY8wrdkFipqZmJOrwtJKdVPD8dRP/Fhqg3CroM1 qlfozXZYONcboYbCZ/WJ1KfGHS0S/ae8BTne/r6mAs8m5jnpI5+cM9EgwPvDpUBvSkwf PLhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HqNtGwsSULgMECvIXjtwzuQmVgy6JxgBjy21HeKeOCQ=; fh=QvlMvYPLT3lQaceyvKjB/XcLze1c9nWZsYRWSS+8ujY=; b=XxCY1BAeGDc+BynSZxbhprwBWTtRG/tOu9Jp2G+JJ2ngxHC1piJpy2Q0ProubrKG63 fGPLv19ZdZBZeNhEueg/oudlZ3sZbMyPtPlW+/YX1g7aj1hCcczdez3ySytctvswQUq2 ZAflgM60dEqGcyztf/80TH6RB/w3opFvKtXXlbBzmzjJKF3JPOW9FJVjg4MztIA+Ijq5 P5RwbUx6XITnoEZ8NIcDFeVWvAj1MdGbAzwd1rvGgYkGNrnIRhWBfGQxRjxl618loMnS /NkeHlHEBQLUmnofrCqmePbZS4OavSMBQhQ2kiMXkbucimPMPDE/VWyOlYkiN/u6ZPTx Kddw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=oBhPfXls; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a170902e5c600b001bbb8324bd5si7859518plf.479.2023.08.14.00.42.05; Mon, 14 Aug 2023 00:42:17 -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=@gmail.com header.s=20221208 header.b=oBhPfXls; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232950AbjHNHTe (ORCPT + 54 others); Mon, 14 Aug 2023 03:19:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233158AbjHNHT1 (ORCPT ); Mon, 14 Aug 2023 03:19:27 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64147E71; Mon, 14 Aug 2023 00:19:26 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-34a8bd1a7fbso7130545ab.1; Mon, 14 Aug 2023 00:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691997566; x=1692602366; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HqNtGwsSULgMECvIXjtwzuQmVgy6JxgBjy21HeKeOCQ=; b=oBhPfXlsvIKAXZKcJTu6l5WToHj87XI39B+YS1gfNuzPLsSEEFjGtAbiq5jeuP21FK OPDozNKBQlpjqnRoCeO8B3/wpoummcq0edk63L6IUP1wvcIT+lg49oFypJc3DyMdB/Tu L5Lbcr25YggfiqabG//dfxCvhwm9MiewlXsNLRnU8JsPOWM06rASp5Tr3K8QMzUpBtxA UY3nEqv4slYPg0LwCJ5AVChXRbRgUUeC0S5MupQzXmpl9Dmcq0sBi21zwQqRfMjCaYJp tZ/kvJ3tb3IgERJXJqr5UsgPmZ0FQbZ4AAj3GFbA1Zw66DZLS2dShhQOnEwB4BkIX7U8 x0OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691997566; x=1692602366; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HqNtGwsSULgMECvIXjtwzuQmVgy6JxgBjy21HeKeOCQ=; b=gRQ53cVHZp5zVnSr8gidtDTLwL/L1cRA6tnmM6CK0aV/ZFzv9g1+15LikW0nryxvmE oT5/CzmqLB521fAeY1rJ9FOg3YDBTCsLZfR0xVi3dlDwWap0+K40lEAukoITPTUw//Vc oORItvG8vSwYhtetEriop67uRlBb8sc20MVwDMj9oa0EsiKVHa+JBpVyQx8hcx7TSNGg OH+snFubxPGppaWx7iStctLdb58pY/t2WiaSkbUfa0f3p15dTs/rgmMAjEmPnLrJ6UoQ L6yzqjhkA4eUcswqKgQNDmllVDq8syah8tOzWnzxbtA1BOyGgzJ2Yz3aEmRVvvjYpHfN +/Ww== X-Gm-Message-State: AOJu0YyYJjrSaigBi2xKr7LZ2yXd2DxjacfE8DhOp+ihel0XT8Knmf4T 9LFakJ1ONlqJEhe9+shLWEMj1/g5NLTiu+U21JnqLXmv X-Received: by 2002:a05:6e02:1bac:b0:349:7905:6a61 with SMTP id n12-20020a056e021bac00b0034979056a61mr14191927ili.26.1691997565787; Mon, 14 Aug 2023 00:19:25 -0700 (PDT) MIME-Version: 1.0 References: <20230813212343.245521-1-artem.chernyshev@red-soft.ru> In-Reply-To: <20230813212343.245521-1-artem.chernyshev@red-soft.ru> From: Jonas Gorski Date: Mon, 14 Aug 2023 09:19:14 +0200 Message-ID: Subject: Re: [PATCH] brcm80211: brcmsmac: phy_cmn: Remove unreachable code To: Artem Chernyshev 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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