Skip to content

Commit dfbf0ee

Browse files
ColinIanKingSteve French
authored andcommitted
smb: client: remove redundant pointer 'server'
The pointer 'server' is assigned but never read, the pointer is redundant and can be removed. Cleans up clang scan build warning: fs/smb/client/dfs.c:217:3: warning: Value stored to 'server' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent ff7d80a commit dfbf0ee

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/smb/client/dfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ static int __dfs_mount_share(struct cifs_mount_ctx *mnt_ctx)
143143
struct smb3_fs_context *ctx = mnt_ctx->fs_ctx;
144144
char *ref_path = NULL, *full_path = NULL;
145145
struct dfs_cache_tgt_iterator *tit;
146-
struct TCP_Server_Info *server;
147146
struct cifs_tcon *tcon;
148147
char *origin_fullpath = NULL;
149148
char sep = CIFS_DIR_SEP(cifs_sb);
@@ -214,7 +213,6 @@ static int __dfs_mount_share(struct cifs_mount_ctx *mnt_ctx)
214213
} while (rc == -EREMOTE);
215214

216215
if (!rc) {
217-
server = mnt_ctx->server;
218216
tcon = mnt_ctx->tcon;
219217

220218
spin_lock(&tcon->tc_lock);

0 commit comments

Comments
 (0)