Skip to content

Commit 08e15f2

Browse files
geyslanericvh
authored andcommitted
9p: remove unused 'super_block' struct pointer
Get rid of the useless '*sb' variable. Signed-off-by: Geyslan G. Bem <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
1 parent 5d62a37 commit 08e15f2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/9p/vfs_inode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,6 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
779779
unsigned int flags)
780780
{
781781
struct dentry *res;
782-
struct super_block *sb;
783782
struct v9fs_session_info *v9ses;
784783
struct p9_fid *dfid, *fid;
785784
struct inode *inode;
@@ -791,7 +790,6 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
791790
if (dentry->d_name.len > NAME_MAX)
792791
return ERR_PTR(-ENAMETOOLONG);
793792

794-
sb = dir->i_sb;
795793
v9ses = v9fs_inode2v9ses(dir);
796794
/* We can walk d_parent because we hold the dir->i_mutex */
797795
dfid = v9fs_fid_lookup(dentry->d_parent);

0 commit comments

Comments
 (0)