cifs: Remove unused inline function is_sysvol_or_netlogon()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 29 May 2021 11:48:48 +0000 (19:48 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:16 +0000 (21:28 -0500)
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>
fs/cifs/dfs_cache.c

index b1fa30f..03c81c3 100644 (file)
@@ -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)
 {