Skip to content

Commit 9a232de

Browse files
author
Miklos Szeredi
committed
ncpfs: fix unused variable warning
Without CONFIG_NCPFS_NLS the following warning is seen: fs/ncpfs/dir.c: In function 'ncp_hash_dentry': fs/ncpfs/dir.c:136:23: warning: unused variable 'sb' [-Wunused-variable] struct super_block *sb = dentry->d_sb; Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent 08895a8 commit 9a232de

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/ncpfs/dir.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *dentry, struct qstr *this)
133133
return 0;
134134

135135
if (!ncp_case_sensitive(inode)) {
136-
struct super_block *sb = dentry->d_sb;
137136
struct nls_table *t;
138137
unsigned long hash;
139138
int i;
140139

141-
t = NCP_IO_TABLE(sb);
140+
t = NCP_IO_TABLE(dentry->d_sb);
142141
hash = init_name_hash(dentry);
143142
for (i=0; i<this->len ; i++)
144143
hash = partial_name_hash(ncp_tolower(t, this->name[i]),

0 commit comments

Comments
 (0)