diff options
author | Tyler Hicks <tyhicks@linux.microsoft.com> | 2022-05-27 02:00:02 +0200 |
---|---|---|
committer | Dominique Martinet <dominique.martinet@atmark-techno.com> | 2022-07-02 11:52:21 +0200 |
commit | 47b1e3432b06c17b2d123b7ad30f04dd97b6d6f7 (patch) | |
tree | 380fa1e42413a686cb80628a3fe70489d0095572 /fs/9p | |
parent | 9p: Make the path walk logic more clear about when cloning is required (diff) | |
download | linux-47b1e3432b06c17b2d123b7ad30f04dd97b6d6f7.tar.xz linux-47b1e3432b06c17b2d123b7ad30f04dd97b6d6f7.zip |
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>
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/fid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/9p/fid.c b/fs/9p/fid.c index e9cea696329f..7ddfed9f3c62 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); |