Skip to content

Commit 47b1e34

Browse files
tyhicksmartinetd
authored andcommitted
9p: Remove unnecessary variable for old fids while walking from d_parent
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. Link: https://lkml.kernel.org/r/20220527000003.355812-5-tyhicks@linux.microsoft.com Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
1 parent c58c72d commit 47b1e34

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/9p/fid.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ static struct p9_fid *v9fs_fid_lookup_with_uid(struct dentry *dentry,
169169
fid = v9fs_fid_find(ds, uid, any);
170170
if (fid) {
171171
/* Found the parent fid do a lookup with that */
172-
struct p9_fid *ofid = fid;
172+
old_fid = fid;
173173

174-
fid = p9_client_walk(ofid, 1, &dentry->d_name.name, 1);
175-
p9_client_clunk(ofid);
174+
fid = p9_client_walk(old_fid, 1, &dentry->d_name.name, 1);
175+
p9_client_clunk(old_fid);
176176
goto fid_out;
177177
}
178178
up_read(&v9ses->rename_sem);

0 commit comments

Comments
 (0)