smb: client: remove redundant pointer 'server'
authorSteve French <stfrench@microsoft.com>
Thu, 20 Jul 2023 01:14:19 +0000 (20:14 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 20 Jul 2023 01:14:19 +0000 (20:14 -0500)
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 <colin.i.king@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs.c

index 26d14dd0482efba9a8b43074deb837b503687005..1403a2d1ab173bd19c710b72e2cb58c588df9104 100644 (file)
@@ -143,7 +143,6 @@ static int __dfs_mount_share(struct cifs_mount_ctx *mnt_ctx)
        struct smb3_fs_context *ctx = mnt_ctx->fs_ctx;
        char *ref_path = NULL, *full_path = NULL;
        struct dfs_cache_tgt_iterator *tit;
-       struct TCP_Server_Info *server;
        struct cifs_tcon *tcon;
        char *origin_fullpath = NULL;
        char sep = CIFS_DIR_SEP(cifs_sb);
@@ -214,7 +213,6 @@ static int __dfs_mount_share(struct cifs_mount_ctx *mnt_ctx)
        } while (rc == -EREMOTE);
 
        if (!rc) {
-               server = mnt_ctx->server;
                tcon = mnt_ctx->tcon;
 
                spin_lock(&tcon->tc_lock);