diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-12-18 01:35:29 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-12-28 10:09:46 -0600 |
commit | 5a650501eb8cb785593155441c5b0b9900edfcdf (patch) | |
tree | 16288c700920e45d99b5779d03bccda7d1e05ccc /fs/cifs | |
parent | 1c780228e9d47b966983a8bbf475dd45967bf0d5 (diff) | |
download | linux-5a650501eb8cb785593155441c5b0b9900edfcdf.tar.gz linux-5a650501eb8cb785593155441c5b0b9900edfcdf.tar.bz2 linux-5a650501eb8cb785593155441c5b0b9900edfcdf.zip |
cifs: remove set but not used variable 'sep'
Fixes gcc '-Wunused-but-set-variable' warning:
fs/cifs/cifs_dfs_ref.c: In function 'cifs_dfs_do_automount':
fs/cifs/cifs_dfs_ref.c:309:7: warning:
variable 'sep' set but not used [-Wunused-but-set-variable]
It never used since introdution in commit 0f56b277073c ("cifs: Make use
of DFS cache to get new DFS referrals")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifs_dfs_ref.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c index 6e6953f35db2..8bd6f6b76da8 100644 --- a/fs/cifs/cifs_dfs_ref.c +++ b/fs/cifs/cifs_dfs_ref.c @@ -295,7 +295,6 @@ static struct vfsmount *cifs_dfs_do_automount(struct dentry *mntpt) int len; int rc; struct vfsmount *mnt; - char sep; cifs_dbg(FYI, "in %s\n", __func__); BUG_ON(IS_ROOT(mntpt)); @@ -314,8 +313,6 @@ static struct vfsmount *cifs_dfs_do_automount(struct dentry *mntpt) goto cdda_exit; } - sep = CIFS_DIR_SEP(cifs_sb); - /* always use tree name prefix */ full_path = build_path_from_dentry_optional_prefix(mntpt, true); if (full_path == NULL) |