Commit 9a232de4 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

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: default avatarMiklos Szeredi <>
parent 08895a8b
...@@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *dentry, struct qstr *this) ...@@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *dentry, struct qstr *this)
return 0; return 0;
if (!ncp_case_sensitive(inode)) { if (!ncp_case_sensitive(inode)) {
struct super_block *sb = dentry->d_sb;
struct nls_table *t; struct nls_table *t;
unsigned long hash; unsigned long hash;
int i; int i;
t = NCP_IO_TABLE(sb); t = NCP_IO_TABLE(dentry->d_sb);
hash = init_name_hash(dentry); hash = init_name_hash(dentry);
for (i=0; i<this->len ; i++) for (i=0; i<this->len ; i++)
hash = partial_name_hash(ncp_tolower(t, this->name[i]), hash = partial_name_hash(ncp_tolower(t, this->name[i]),
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