Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2964314rdb; Mon, 4 Dec 2023 12:25:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwPDYQIWN3UXFEe2x3FCghHRbQVlX7hb9NMs4Up0NBOi/FVoA9TobSBwPVpIgL87PRUXqo X-Received: by 2002:a05:6870:9114:b0:1fb:75a:c413 with SMTP id o20-20020a056870911400b001fb075ac413mr4619006oae.60.1701721520556; Mon, 04 Dec 2023 12:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701721520; cv=none; d=google.com; s=arc-20160816; b=dC6no0wbAvmV90a04lnmTuF7daE7ZW3C9lF+Y7JWw8tB5icfLohMzupkXhJyOwOYjG 8FpjCYv+N13b0rsYdfAnZ6FNoO65E6d89jsfVvSSWkCpCxua53x0kM1j0Tu9VmRQSpGQ v4tNFYA27JJdGqM/1rx/qOJKHzadIVjNZaMW0O65KxlaMfN165z3gG1+1rGukovZ/9Uu n6A5PHZALb2qVEIg5eXj6Uyuu76l7hfSCe6o7DewnjIHb26+XTiirALYSZZh8vAhcZ3A ctV7M7MeEtwjAIkBVtqDwZBdq/90MRi5aoVdoKWHkfP+HyCdn1I21jDnfUk1AGeZsnzg Wuzg== 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=NxsXxgEwajVp2nmiZ0DXvN9BQtrzPnXHi53PMNLuGzs=; fh=zrf3k9maC4LGn/MmcHhRkqh5cHnarsSKx/fWXfAmYNI=; b=Rqh/JDA+WIrPraoXHXbvrghaum0BQYyGyXp5TRQu4sd/tEYLyuFTtgLS2CvIoyJ8RA SgmTa8zv4dWVIWkpArSGPUI3D/Q5zM1vXPztnxU3QxMA3hHASoW55ia2+8CovcPbVF4n A9+OOtbNidFV1jqUn0Yhq1/Jwq9teMkv8nGy1e7U9+hl2MiUjZLY62ehAheNRWT48OfW sgyUfDDzHuev+S/YsFwIVlwFl4DqeHJ9/PAOcPrvvs6n6PLTutZ8VPvLXTYnQR5vWvs6 D63O3q9EV2Ah2xqC4KcP2F3OthAhxVhyHv18bdQFOxtRFjqB0cZ7kW8IhSKiN7HBkWYo dUsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PuIGeQI5; spf=pass (google.com: domain of linux-nfs+bounces-308-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-308-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 jz10-20020a0562140e6a00b0067a8b033b54si10474092qvb.172.2023.12.04.12.25.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:25:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-308-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=PuIGeQI5; spf=pass (google.com: domain of linux-nfs+bounces-308-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-308-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 30AC71C20B4B for ; Mon, 4 Dec 2023 20:25:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 330C030F92; Mon, 4 Dec 2023 20:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PuIGeQI5" 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 1645D34196 for ; Mon, 4 Dec 2023 20:25:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80386C433CA; Mon, 4 Dec 2023 20:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701721514; bh=mJmCrf2Zb6Hk+V9yJG0ZUTKvd7Dd7P+Chu6znTBgs6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PuIGeQI5rr5iiJYBDqQx1rxTuc+wLk69yBFT3a6fvQQd+Wou7E3hYDHUsvEYw4A2/ nh5fg6EGRcnNvjLgpI4AyJDfJoDwSjXk72t4BepYuwI9coajuGYh5BYx1VytfM8GgU eD/UwCXmfnuFT3kBoLnJ4o0rrXXzN219MYHD0+fnStPTwn9WUG2SApSGdQkmPv/b3F kt2835E/6BenH+5uGFHofOWfb9+huiF0/hxeuF6vI94O377bOTU+1vShAePMmaOvst VKqPXxeNS6ZlQ3rvqu0WPmQGJpiwZvPXrb9MEwc7Gbp5d7x1Tx1l0G6H/hM1psH4ST unVg6LNRdouvg== From: Anna Schumaker To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com Cc: anna@kernel.org Subject: [PATCH v2 1/4] SUNRPC: Clean up unused variable in rpc_xprt_probe_trunked() Date: Mon, 4 Dec 2023 15:25:09 -0500 Message-ID: <20231204202512.108047-2-anna@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231204202512.108047-1-anna@kernel.org> References: <20231204202512.108047-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. Reviewed-by: Jeff Layton 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