Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1256024rda; Mon, 23 Oct 2023 07:17:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMMbiE/5YliV9tyqakm22VwVwSk5H8NdQXhrxIj7s487TMHPjObB8ac3CsAbx7nek8/3Ig X-Received: by 2002:a17:90a:3:b0:27d:262f:e7f1 with SMTP id 3-20020a17090a000300b0027d262fe7f1mr12113832pja.3.1698070676651; Mon, 23 Oct 2023 07:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698070676; cv=none; d=google.com; s=arc-20160816; b=DFL/64h25yhQhSGKpuDX6uWyd8kPMgy69AkdilzT8WoEamwO82f3h3xh1LHSjXi6Te cOPPzjn0GHzrQF6FKLaZ0XOzLVU3ecxkA3EYkN1Uso6a5NabuydNOo6H/49XAee5vfh8 DBHQW0iPwyno40J6R/0Gc49WJkxq4s/tCU2mYDCrZ5ZOV9C4FaTRgZxBzaK6uFGtfE/a M74d73yd03iyBej5SNDgqEucUG862vLWVbyinFR9E9JjMJowaczbCEaxvYe84AeFRsz2 c+o5hPjmKLzCO+lo90USjv66Baqqe3LI2No9qcz8QViz8bRQn/Nr3i4JD7E4rY7HqsBx vyFg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=MFPcDFb3rA6DEVv+E4/6giAKrtDXn30BGGzl7G+7DVg=; fh=aP3s5T6NRKbEQ5y0yGsvQCYSpaqtiR3ZInZZQunFq/Q=; b=XHFsa0wzffKM1CLD0a5Esoyi88rm2HVHrlwOqaipAGAY7zWghtDwUbbTbt2UhFJQ6s jGEGWlwtwsfQyMHKF09aImbzWYXxK63FM1duDmnuaa/CRevp3PRhseW4RMHEGt5mjDXq pjvFIv9DDx/kZsZaheNK21vDYuWSFeiQZMh+dwEkF1ItDuoJ4XSQYAgd1A+5FVljJUwr U96JT+FGQgNeGsi8M0D97zPUd1fis4vro5oOL+LSXWSSZ7wr/QLJuSsjteYR3jGPhN2h QO2AFlfK2v2MjISsCoNQUJFzLoZWMprunNcNVWFnIwVB/5rRFrWBbFHtpVo8Yklt4J5f sDUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XptcO4Qp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id hk1-20020a17090b224100b00276c28cdd4fsi6875815pjb.31.2023.10.23.07.17.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:17:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XptcO4Qp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9FBC78068942; Mon, 23 Oct 2023 07:17:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbjJWORk (ORCPT + 99 others); Mon, 23 Oct 2023 10:17:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbjJWORi (ORCPT ); Mon, 23 Oct 2023 10:17:38 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA945B3; Mon, 23 Oct 2023 07:17:36 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-408382da7f0so27830695e9.0; Mon, 23 Oct 2023 07:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698070655; x=1698675455; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MFPcDFb3rA6DEVv+E4/6giAKrtDXn30BGGzl7G+7DVg=; b=XptcO4Qpczvnqnk2Q/5ITzkjGUFwx0g7EcH0eQcaTzHmsqSgMOWQXhE3FX0E7s8/jD fobycj6m0luGSJ8NSTlGhJEk4BRhXUGeRwaqsMyTG2unAK8xLgYU7ViY/HMIe9c9p4Js r7Byo1n6rgp1sMA1HNpAcwN7BrDuT6vCoZXUaD6NJh8H1tR9aEUxi3p802QpfKzbxtdS 0vrjkxrP6vygHWjZAbtidMjNOmFA2BG9Ov/PBIdn0/i73W5BSwaNzul7FtBdlTW0CMja j/wsdV+tL7iyXfIFk4WM+sK+1c20Zii2QCtokRUK2KJH8arX/9re2DhYGcxFyKyxhdzc ddPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698070655; x=1698675455; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MFPcDFb3rA6DEVv+E4/6giAKrtDXn30BGGzl7G+7DVg=; b=e9HFYkKUeApMUruvp513oLeW5mEwTQhi1ZzLXUHRmiT1DE4V84LhpBhkiqkH+fqXpw WoujNfjnf+/0uaOE/JmGs/6SaJxh/B7iHGx8dIloNU/mMvQ5CWU8iiVRCbTvy+lkE2uN 6nxUgdMydowZL8POV+JYevQRJ3R60EBZ9Bl8HsFbmkdRaWQFX/Y0TaEbM1inAn4X4x4p Kjmu10rnZq9BVukhu5i5LT6m0so/Cz5NiyFpuH32e6PrZgFMZh6r+o2tdLmDS4Rmb3qF tDUPtuSiMrc+mCs2e8b0jj2gG/FB4SuGmJTxf8STOT0LR/itrhnnbhpSX9Fo+iVZJB4k 7Z4Q== X-Gm-Message-State: AOJu0YyKzFYDb5OLRjOE3Ij8N/dm4UlqggpVXtZiSxx1yl7EmL+OqCfN XJkbl99zC0e4tmy+shtSDbU= X-Received: by 2002:a05:600c:4f12:b0:405:36d7:4582 with SMTP id l18-20020a05600c4f1200b0040536d74582mr7085804wmq.15.1698070654857; Mon, 23 Oct 2023 07:17:34 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id az15-20020a05600c600f00b00406447b798bsm14465796wmb.37.2023.10.23.07.17.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:17:34 -0700 (PDT) From: Colin Ian King To: Dennis Dalessandro , Jason Gunthorpe , Leon Romanovsky , linux-rdma@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] RDMA/hfi1: remove redundant assignment to pointer ppd Date: Mon, 23 Oct 2023 15:17:33 +0100 Message-Id: <20231023141733.667807-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 07:17:43 -0700 (PDT) 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] Signed-off-by: Colin Ian King --- drivers/infiniband/hw/hfi1/init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/infiniband/hw/hfi1/init.c b/drivers/infiniband/hw/hfi1/init.c index 5ce2215e09c2..cbac4a442d9e 100644 --- a/drivers/infiniband/hw/hfi1/init.c +++ b/drivers/infiniband/hw/hfi1/init.c @@ -1027,7 +1027,6 @@ static void shutdown_device(struct hfi1_devdata *dd) msix_clean_up_interrupts(dd); for (pidx = 0; pidx < dd->num_pports; ++pidx) { - ppd = dd->pport + pidx; for (i = 0; i < dd->num_rcv_contexts; i++) { rcd = hfi1_rcd_get_by_index(dd, i); hfi1_rcvctrl(dd, HFI1_RCVCTRL_TAILUPD_DIS | -- 2.39.2