Skip to contentSkip to conversation

cifs: remove unused variable 'server'

PATCH Applied Wei Yongjun 3 participants 3 messages Jul 7, 2020 – Jul 8, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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;
| ^~~~~~

---
 fs/cifs/inode.c | 2 --
 1 file changed, 2 deletions(-)
fs/cifs/inode.c +0 -2
index ce95801e9b66..3989d08396ac 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Signature · 4 lines
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)
Applied
#2 lore raw

merged into cifs-2.6.git for-next (for 5.9 when merge window opens up)

Quoted 10 lines · Aurélien Aptel via samba-technical

--
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)

Signature · 3 lines
Thanks,

Steve