Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1960105rda; Tue, 24 Oct 2023 08:16:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYS8JO6gPxdva0zc2+UFaPdql1sHH7zg32n3jojqMM31/NzOjFrMwJvstykO63OR7ra4Gl X-Received: by 2002:a17:903:24c:b0:1c1:fe97:bf34 with SMTP id j12-20020a170903024c00b001c1fe97bf34mr11556202plh.24.1698160616510; Tue, 24 Oct 2023 08:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698160616; cv=none; d=google.com; s=arc-20160816; b=V8K2JlsNwbO4lDKMWewSUWyHrz/QcN45vQWOBznS3RWB4GAR6T1BaUFNYd6STw75Oy evAIFLLqZn7sIPpj+BhSsXJIZZVcBKzCcL+RM5YYK0vffBzmIRtLi8swDvnojT98P+2E 79WI97ISMi2bZky6NLFTypXDzancWO0edKMNt2qYPa70vQIUzKzS/Cl277nvp5dYdp0h WsiVjhEKX0ZWZ8u1u6921aa2MW+15YIdh2pXeVJcaRB3u2GEZKCzzYZui5wJoE78pXWC l6Tk7rJTg6Z6uah/OX2l7OKAD8UPa4W0ZXf83/rtXfxxZfTjColfxJBdJjyeHDIizC8i oBYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=MdmZGd1YrKORq9w9nbBx4Afo2qzY7gOPenvNYquArag=; fh=4Tn0Sr4ZXBaFCU9eaB2R/5DDVhzYVRk1eS589OjvAQs=; b=P47C/vZeUFz2LwPLiS0m8ytsKsdXT4RpNjKPME1OtE8zE7HYxhnNHDR5cRG7UyqiC+ P2tC+WtwEKMYE+7xlyeGJprkPf3bcDwBzXwQqyoZneTwq/WgJWgyC3JPbGK2B0W5rSg4 s/kWzkmXl248r61kGMPvh65rg/DT8QDiq/VdcZSX3mLdKMc6PmZpXoeM78JmmXSM2Jyj fGie1uwagVIqLvicl78LT62TgPOg7s2VD6yRgkxxOe59cqaqK4iuD173BQoCQIfORoEV a+/jTWo39H9+o8wN+C1Vh2Hznmqzw22dXaGwiDYSBDJ8VEtjFgEgBAenUp3D6zX5SR28 NIlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nuZL7NOy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id g4-20020a170902c38400b001c72c258f82si8602299plg.99.2023.10.24.08.16.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 08:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nuZL7NOy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 606C380B130E; Tue, 24 Oct 2023 08:16:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343594AbjJXPQp (ORCPT + 99 others); Tue, 24 Oct 2023 11:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234653AbjJXPQg (ORCPT ); Tue, 24 Oct 2023 11:16:36 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F9A910E2; Tue, 24 Oct 2023 08:16:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EB1DC433CA; Tue, 24 Oct 2023 15:16:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698160593; bh=0NrY7joD0QN8CxuK5EACBmNxwYvhzcOzcKThmxRZNkU=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=nuZL7NOyiyiqkrkofBG2HosMFLnJYDVGVarFuZ7gZsj/cR104ZqZJ9p9X8fXzoKyI LFOX0Ia03tmGiJPftM/iaxhNQT3mlHltnMWjsT6O2I8k5OzvFgfofAPJQvmrfhDrVT ciRQur3lQPgzWZJqHDaBcom3dAJunSXIPVQy+iiQpFr9sVRIZ4nbnm4957oQJUzDT3 VTg2pVLl4jQ1Y69zNL2iMU21m5jBrR3yW3sAN2t4GBjET8uoOJhzxFAP3W0q8TvOUz jfC2p4lFwR4/cgmE1twmFvxtmHi+uF/vYTGCGKLtC6pxULkPQPNjorEWhY8i311Z+i 7fJeirFgVqvyw== From: Leon Romanovsky To: Dennis Dalessandro , Jason Gunthorpe , linux-rdma@vger.kernel.org, Colin Ian King Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231023141733.667807-1-colin.i.king@gmail.com> References: <20231023141733.667807-1-colin.i.king@gmail.com> Subject: Re: [PATCH] RDMA/hfi1: remove redundant assignment to pointer ppd Message-Id: <169816058968.2308077.4145972998710819648.b4-ty@kernel.org> Date: Tue, 24 Oct 2023 18:16:29 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12-dev-a055d X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 08:16:54 -0700 (PDT) On Mon, 23 Oct 2023 15:17:33 +0100, Colin Ian King wrote: > Pointer ppd is being assigned a value in a for-loop however it > is never read. The assignment is redundant and can be removed. > Cleans up clang scan build warning: > > drivers/infiniband/hw/hfi1/init.c:1030:3: warning: Value stored > to 'ppd' is never read [deadcode.DeadStores] > > [...] Applied, thanks! [1/1] RDMA/hfi1: remove redundant assignment to pointer ppd https://git.kernel.org/rdma/rdma/c/b55706366c5ed6 Best regards, -- Leon Romanovsky