Commit 47b1e343 authored by Tyler Hicks's avatar Tyler Hicks Committed by Dominique Martinet

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.comSigned-off-by: default avatarTyler Hicks <tyhicks@linux.microsoft.com>
Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
parent c58c72d3
...@@ -169,10 +169,10 @@ static struct p9_fid *v9fs_fid_lookup_with_uid(struct dentry *dentry, ...@@ -169,10 +169,10 @@ static struct p9_fid *v9fs_fid_lookup_with_uid(struct dentry *dentry,
fid = v9fs_fid_find(ds, uid, any); fid = v9fs_fid_find(ds, uid, any);
if (fid) { if (fid) {
/* Found the parent fid do a lookup with that */ /* 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); fid = p9_client_walk(old_fid, 1, &dentry->d_name.name, 1);
p9_client_clunk(ofid); p9_client_clunk(old_fid);
goto fid_out; goto fid_out;
} }
up_read(&v9ses->rename_sem); up_read(&v9ses->rename_sem);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment