aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/dfs_cache.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2021-05-29 19:48:48 +0800
committerSteve French <stfrench@microsoft.com>2021-06-20 21:28:16 -0500
commita23a71abca941fdbac32e504c6d78cf99c6df70f (patch)
tree59d5a2109e1bc6e8b342ae1c15c9ba451343baf6 /fs/cifs/dfs_cache.c
parentcifs: remove duplicated prototype (diff)
downloadlinux-dev-a23a71abca941fdbac32e504c6d78cf99c6df70f.tar.xz
linux-dev-a23a71abca941fdbac32e504c6d78cf99c6df70f.zip
cifs: Remove unused inline function is_sysvol_or_netlogon()
is_sysvol_or_netlogon() is never used, so can remove it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/dfs_cache.c')
-rw-r--r--fs/cifs/dfs_cache.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c
index b1fa30fefe1f..03c81c39a507 100644
--- a/fs/cifs/dfs_cache.c
+++ b/fs/cifs/dfs_cache.c
@@ -319,17 +319,6 @@ static inline unsigned int cache_entry_hash(const void *data, int size)
return h & (CACHE_HTABLE_SIZE - 1);
}
-/* Check whether second path component of @path is SYSVOL or NETLOGON */
-static inline bool is_sysvol_or_netlogon(const char *path)
-{
- const char *s;
- char sep = path[0];
-
- s = strchr(path + 1, sep) + 1;
- return !strncasecmp(s, "sysvol", strlen("sysvol")) ||
- !strncasecmp(s, "netlogon", strlen("netlogon"));
-}
-
/* Return target hint of a DFS cache entry */
static inline char *get_tgt_name(const struct cache_entry *ce)
{