Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <weiyongjun1@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>

authored by

Wei Yongjun and committed by
Steve French
66a4bbc3 0a018944

-2
-2
fs/cifs/inode.c
··· 1086 1086 struct super_block *sb, unsigned int xid) 1087 1087 { 1088 1088 struct cifs_tcon *tcon; 1089 - struct TCP_Server_Info *server; 1090 1089 struct tcon_link *tlink; 1091 1090 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); 1092 1091 bool adjust_tz = false; ··· 1099 1100 if (IS_ERR(tlink)) 1100 1101 return PTR_ERR(tlink); 1101 1102 tcon = tlink_tcon(tlink); 1102 - server = tcon->ses->server; 1103 1103 1104 1104 /* 1105 1105 * 1. Fetch file metadata