OSDN Git Service

cifs: remove unused variable 'server'
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 7 Jul 2020 11:27:41 +0000 (19:27 +0800)
committerSteve French <stfrench@microsoft.com>
Sun, 2 Aug 2020 23:00:25 +0000 (18:00 -0500)
Fix build warning by removing unused variable 'server':

fs/cifs/inode.c:1089:26: warning:
 variable server set but not used [-Wunused-but-set-variable]
 1089 |  struct TCP_Server_Info *server;
      |                          ^~~~~~

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
fs/cifs/inode.c

index ce95801..3989d08 100644 (file)
@@ -1086,7 +1086,6 @@ smb311_posix_get_inode_info(struct inode **inode,
                    struct super_block *sb, unsigned int xid)
 {
        struct cifs_tcon *tcon;
-       struct TCP_Server_Info *server;
        struct tcon_link *tlink;
        struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
        bool adjust_tz = false;
@@ -1100,7 +1099,6 @@ smb311_posix_get_inode_info(struct inode **inode,
        if (IS_ERR(tlink))
                return PTR_ERR(tlink);
        tcon = tlink_tcon(tlink);
-       server = tcon->ses->server;
 
        /*
         * 1. Fetch file metadata