Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1235738ioo; Fri, 27 May 2022 04:42:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuxiSlwddrPrRRkObSY21KvK7FVCKz2kAMmM3lIBRtLiFXs4QMIALs4GfKaw64KtLNibsA X-Received: by 2002:a05:6a00:140c:b0:4e1:530c:edc0 with SMTP id l12-20020a056a00140c00b004e1530cedc0mr43799204pfu.18.1653651745837; Fri, 27 May 2022 04:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653651745; cv=none; d=google.com; s=arc-20160816; b=XoWlIA/lckQKOn7e5tToc6u6XtVLksbJ9VqHRIwdp7SgJhRHO50ccWDb7/hJsArFNX Jb9oVBebP/4kGbEjX0GSR9pwrdRkCiJIkmHOxJYZq5MnEEG3ydDIO2lhCtO+vWt1Vdtm MMAfvl33kHHkNn2Go9gtH0ZIx8AR1Wj5Ehn1hHLotRzZXqdV3hMWz09W8R2hd9usWkwJ Day/sOAhGFi80pe70UCw1JKphtPmRW7smV820cMS1Zc1IeXnRA+1xeHJLOOIBLg1iYz4 +3WOtSmBoESrfflGRPKFYHr6DdYcYGw3q2iY11/7f6NxDnPNcH124dHqwCzRNfaDhR7b 4o4g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=WyWhT64EqXgi1j+9Im254CVOA49spwfGfom1V/BOPbU=; b=tLbz8wml3sJtQ2XxeEqvVEHbjBwt2u9gGSL9vbw7bVA6weP86bBEont7Zhz7TNQDRC cdNxb9rR1siFcTODpAx/Q/qgqLUN9td3qDbnSToiEjilOHoEV6VltQIl1KuVh8x8VA8S vXzbs6tNX/dfAL6s2+DekZhrFBtUyU9m5MoJx/T3nprLEIFzEt++sMgSYhfa3SBJDznr Lu2+rzoO/wVfQN2VUgoto8VPWtK7/jAA87XSt+gDOcVBvOwsmyQxtgapnnli9zZPEChV sOgHN+WAvtg80l6HROuNqLBLwVIQE1RNaqVGu800Y7SmyS91DRYldsEVStwYXq1b0Y2Z 9BeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=bIse+ow2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 22-20020a630f56000000b003fa3e7a7968si6056901pgp.423.2022.05.27.04.42.13; Fri, 27 May 2022 04:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linux.microsoft.com header.s=default header.b=bIse+ow2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237929AbiE0AAr (ORCPT + 99 others); Thu, 26 May 2022 20:00:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346078AbiE0AAd (ORCPT ); Thu, 26 May 2022 20:00:33 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7F64A3617A for ; Thu, 26 May 2022 17:00:32 -0700 (PDT) Received: from sequoia.corp.microsoft.com (162-237-133-238.lightspeed.rcsntx.sbcglobal.net [162.237.133.238]) by linux.microsoft.com (Postfix) with ESMTPSA id BF81420B5B4E; Thu, 26 May 2022 17:00:31 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BF81420B5B4E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1653609632; bh=WyWhT64EqXgi1j+9Im254CVOA49spwfGfom1V/BOPbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bIse+ow20K7BpanHXQ49cUZmR92pHLe3BfWwyAAZ4EsY5q37ymkoDSmdVFd0TvL/Q K7+e+3sGrdKft2U3/DDB9FKWl2dsfSbjIjli2TdTUUtdC4j6TKNc4R5zav4yirSfco AMuyahFc8Kx/YQEStqu6yesnJ0mDPPL8jhvkZp6c= From: Tyler Hicks To: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet Cc: Christian Schoenebeck , Jianyong Wu , v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] 9p: Remove unnecessary variable for old fids while walking from d_parent Date: Thu, 26 May 2022 19:00:02 -0500 Message-Id: <20220527000003.355812-5-tyhicks@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220527000003.355812-1-tyhicks@linux.microsoft.com> References: <20220527000003.355812-1-tyhicks@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 Remove the ofid variable that's local to the conditional block in favor of the old_fid variable that's local to the entire function. Signed-off-by: Tyler Hicks --- fs/9p/fid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/9p/fid.c b/fs/9p/fid.c index dfe98a308612..d8c70c4cd3c2 100644 --- a/fs/9p/fid.c +++ b/fs/9p/fid.c @@ -169,10 +169,10 @@ static struct p9_fid *v9fs_fid_lookup_with_uid(struct dentry *dentry, fid = v9fs_fid_find(ds, uid, any); if (fid) { /* Found the parent fid do a lookup with that */ - struct p9_fid *ofid = fid; + old_fid = fid; - fid = p9_client_walk(ofid, 1, &dentry->d_name.name, 1); - p9_client_clunk(ofid); + fid = p9_client_walk(old_fid, 1, &dentry->d_name.name, 1); + p9_client_clunk(old_fid); goto fid_out; } up_read(&v9ses->rename_sem); -- 2.25.1