diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2023-01-05 16:41:11 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-01-11 00:31:08 +0300 |
commit | 2f57e4464cddfceda850ae4224779d11b6eb171f (patch) | |
tree | 00589b4bdee7bfa17a56a7995466819e77d2d187 /fs/cifs | |
parent | ba5d4c1596cada37793d405dd18d695cd3508902 (diff) | |
download | linux-2f57e4464cddfceda850ae4224779d11b6eb171f.tar.xz |
cifs: remove redundant assignment to the variable match
The variable match is being assigned a value that is never read, it
is being re-assigned a new value later on. The assignment is redundant
and can be removed.
Cleans up clang scan-build warning:
fs/cifs/dfs_cache.c:1302:2: warning: Value stored to 'match' is never read
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/dfs_cache.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c index 43ad1176dcb9..e20f8880363f 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@ -1299,7 +1299,6 @@ static bool target_share_equal(struct TCP_Server_Info *server, const char *s1, c * Resolve share's hostname and check if server address matches. Otherwise just ignore it * as we could not have upcall to resolve hostname or failed to convert ip address. */ - match = true; extract_unc_hostname(s1, &host, &hostlen); scnprintf(unc, sizeof(unc), "\\\\%.*s", (int)hostlen, host); |