]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ncpfs: fix unused variable warning
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 27 Sep 2016 09:03:57 +0000 (11:03 +0200)
committerSasha Levin <alexander.levin@microsoft.com>
Sun, 4 Mar 2018 15:28:33 +0000 (10:28 -0500)
commit9c6aac26c0c140f7a9356e519adb642f5a5e2bc5
treef89eddec4a1ae184f92d64d349c436ef16d706aa
parent73cbc7b9373fe079839b9dad223d6240d9e15305
ncpfs: fix unused variable warning

[ Upstream commit 9a232de4999666b2e8ea6775b2b0e3e4feb09b7a ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
fs/ncpfs/dir.c