Commit a23a71ab authored by YueHaibing's avatar YueHaibing Committed by Steve French

cifs: Remove unused inline function is_sysvol_or_netlogon()

is_sysvol_or_netlogon() is never used, so can remove it.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent f2756527
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment