Skip to content

Commit 2f57e44

Browse files
ColinIanKingSteve French
authored andcommitted
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>
1 parent ba5d4c1 commit 2f57e44

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/cifs/dfs_cache.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,6 @@ static bool target_share_equal(struct TCP_Server_Info *server, const char *s1, c
12991299
* Resolve share's hostname and check if server address matches. Otherwise just ignore it
13001300
* as we could not have upcall to resolve hostname or failed to convert ip address.
13011301
*/
1302-
match = true;
13031302
extract_unc_hostname(s1, &host, &hostlen);
13041303
scnprintf(unc, sizeof(unc), "\\\\%.*s", (int)hostlen, host);
13051304

0 commit comments

Comments
 (0)