diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2016-09-27 05:03:57 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2016-09-27 05:03:57 -0400 |
commit | 9a232de4999666b2e8ea6775b2b0e3e4feb09b7a (patch) | |
tree | b21e9e105a314c262a6b1ed7637943c85af68f84 | |
parent | 08895a8b6b06ed2323cd97a36ee40a116b3db8ed (diff) |
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>
-rw-r--r-- | fs/ncpfs/dir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index 17de5c13dfae..f5b594e2457c 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c | |||
@@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *dentry, struct qstr *this) | |||
133 | return 0; | 133 | return 0; |
134 | 134 | ||
135 | if (!ncp_case_sensitive(inode)) { | 135 | if (!ncp_case_sensitive(inode)) { |
136 | struct super_block *sb = dentry->d_sb; | ||
137 | struct nls_table *t; | 136 | struct nls_table *t; |
138 | unsigned long hash; | 137 | unsigned long hash; |
139 | int i; | 138 | int i; |
140 | 139 | ||
141 | t = NCP_IO_TABLE(sb); | 140 | t = NCP_IO_TABLE(dentry->d_sb); |
142 | hash = init_name_hash(dentry); | 141 | hash = init_name_hash(dentry); |
143 | for (i=0; i<this->len ; i++) | 142 | for (i=0; i<this->len ; i++) |
144 | hash = partial_name_hash(ncp_tolower(t, this->name[i]), | 143 | hash = partial_name_hash(ncp_tolower(t, this->name[i]), |