Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1332879rdb; Fri, 1 Dec 2023 13:15:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhdaArIC6JJ0wz5x3vRkLe092EJ4oPjCrTq2Lzm/+nzHTC06GcyAaN3w7WROsz1ybs8BQ3 X-Received: by 2002:a05:6870:6716:b0:1fb:412:c32c with SMTP id gb22-20020a056870671600b001fb0412c32cmr299365oab.32.1701465356237; Fri, 01 Dec 2023 13:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701465356; cv=none; d=google.com; s=arc-20160816; b=mBn1U648fTFBiLIXrHuvgtXK0LYghaPyHnw3btTOFUj95bLfL7caavCd6f39uhSWM4 1Yg12kaEzsVEjL6rpe14E3SmoRY2xJtqIEDh5MvyRhgZJs8jOMmc57rL0QxW8JGud1SD OK6W02MSj4eif8uL25HC4qcQhZet8kuPVxWVge0cthJ6ojlUVfJe4DPbb5CJq+C4Nfkk 6usM8N26Fwt0Ox5LAynfGP9X32/ePUKJm11Lqr2rvcOxzWb2DrHCPHN/4ahME/Z9gUnD c4KtrSrrhQBRtJ8vPL/x/JupEEHZutp4jqIFIJruBdVKTcBDJKfkOuqJ6nt40laW1DN8 qERw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=95ag9inXbOAv68UD+uUyf3OM+pnFTiyU0+kUQ/wD8Zk=; fh=zrf3k9maC4LGn/MmcHhRkqh5cHnarsSKx/fWXfAmYNI=; b=qB7FfoQdqFbTy/PdBKAy1Kg68ckZFZaakmnQeMwtZqqI+DTTKNKgfXMihTgvwXxdnn ozUmHxDp9ZOwTKyFRXRtgvZWdlIVNEYMYdQJBR0AlhbNcYWUqESBJHz7MBo2IQsrVwB6 NsiWW77fpS4aL1cPYc7KIe6wQOdzBiTAZJOpJRKQpbw674CJsm1msvV7FCt3EJFKuYTi eKcVqG/wgCHHXCupktMTVGfqvDrnMxVnq1ikEAqzjBSPJEN1/3+V2J6A1cSrhR7sGw2c D5CY6GystRgJky+EgqXU3rUg8IpeUfhdf0NrLheyvoXGVSbYxsnFnf71G0BIMwC4eyuy BfMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t16spEbu; spf=pass (google.com: domain of linux-nfs+bounces-248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dg15-20020a056214084f00b0067a92f50991si2707809qvb.170.2023.12.01.13.15.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 13:15:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t16spEbu; spf=pass (google.com: domain of linux-nfs+bounces-248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E7A0A1C20BD1 for ; Fri, 1 Dec 2023 21:15:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2874D59157; Fri, 1 Dec 2023 21:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t16spEbu" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F379F58ADC for ; Fri, 1 Dec 2023 21:15:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 738FBC433CB; Fri, 1 Dec 2023 21:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701465351; bh=OY5q+/v9cOSsro/mtxg63h3ZNCHQXLTP7DYLvH2gptw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t16spEbuVRu4XmIQNuuRi6W3KyGDu00AffkzvxLVe9+yf8K5zupzdjaoqZmu75Zba +RWWI64Pzc9uEzAaUtr3fjogDGFiqn1rRnvhfMAqI8sGL6LCstB695sAh4gWobcLY0 WmXeoRbbiPYOkYv2fTx3ncKO1ZPjwWNLIJuCkFT+5oPKOcFqgk94TiIvZz0bjTmzkk E7hfWmz7pYCMa3jfqaa+J3Qy/otQjHbFI1EeES/ye5hieUpX9dX3A9ICBda9sTadxv Io3uotXjtWVazlCje8cPY20tr18J5iuLIRwYeRxueN2I0fJ01cf+iPl/2WX6UABm4Q 7RrIXDlpS4XmQ== From: Anna Schumaker To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com Cc: anna@kernel.org Subject: [PATCH 1/4] SUNRPC: Clean up unused variable in rpc_xprt_probe_trunked() Date: Fri, 1 Dec 2023 16:15:46 -0500 Message-ID: <20231201211549.126941-2-anna@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231201211549.126941-1-anna@kernel.org> References: <20231201211549.126941-1-anna@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Anna Schumaker We don't use the rpc_xprt_switch anywhere in this function, so let's not take an extra reference to in unnecessarily. Signed-off-by: Anna Schumaker --- net/sunrpc/clnt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index daa9582ec861..4aa838543f79 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -3116,7 +3116,6 @@ static int rpc_xprt_probe_trunked(struct rpc_clnt *clnt, struct rpc_xprt *xprt, struct rpc_add_xprt_test *data) { - struct rpc_xprt_switch *xps; struct rpc_xprt *main_xprt; int status = 0; @@ -3124,7 +3123,6 @@ static int rpc_xprt_probe_trunked(struct rpc_clnt *clnt, rcu_read_lock(); main_xprt = xprt_get(rcu_dereference(clnt->cl_xprt)); - xps = xprt_switch_get(rcu_dereference(clnt->cl_xpi.xpi_xpswitch)); status = rpc_cmp_addr_port((struct sockaddr *)&xprt->addr, (struct sockaddr *)&main_xprt->addr); rcu_read_unlock(); @@ -3135,7 +3133,6 @@ static int rpc_xprt_probe_trunked(struct rpc_clnt *clnt, status = rpc_clnt_add_xprt_helper(clnt, xprt, data); out: xprt_put(xprt); - xprt_switch_put(xps); return status; } -- 2.43.0