Skip to content

Commit 66a4bbc

Browse files
Wei Yongjunsmfrench
authored andcommitted
cifs: remove unused variable 'server'
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 <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]>
1 parent 0a01894 commit 66a4bbc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/cifs/inode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,6 @@ smb311_posix_get_inode_info(struct inode **inode,
10861086
struct super_block *sb, unsigned int xid)
10871087
{
10881088
struct cifs_tcon *tcon;
1089-
struct TCP_Server_Info *server;
10901089
struct tcon_link *tlink;
10911090
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
10921091
bool adjust_tz = false;
@@ -1100,7 +1099,6 @@ smb311_posix_get_inode_info(struct inode **inode,
11001099
if (IS_ERR(tlink))
11011100
return PTR_ERR(tlink);
11021101
tcon = tlink_tcon(tlink);
1103-
server = tcon->ses->server;
11041102

11051103
/*
11061104
* 1. Fetch file metadata

0 commit comments

Comments
 (0)