All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] cifs: remove unused variable 'server'
@ 2020-07-07 11:27 Wei Yongjun
  2020-07-08 14:15 ` Aurélien Aptel
  0 siblings, 1 reply; 3+ messages in thread
From: Wei Yongjun @ 2020-07-07 11:27 UTC (permalink / raw)
  To: Hulk Robot, Steve French; +Cc: Wei Yongjun, linux-cifs, samba-technical

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>
---
 fs/cifs/inode.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index ce95801e9b66..3989d08396ac 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] cifs: remove unused variable 'server'
  2020-07-07 11:27 [PATCH -next] cifs: remove unused variable 'server' Wei Yongjun
@ 2020-07-08 14:15 ` Aurélien Aptel
  2020-07-08 19:16   ` Steve French
  0 siblings, 1 reply; 3+ messages in thread
From: Aurélien Aptel @ 2020-07-08 14:15 UTC (permalink / raw)
  To: Wei Yongjun, Hulk Robot, Steve French
  Cc: Wei Yongjun, linux-cifs, samba-technical


Reviewed-by: Aurelien Aptel <aaptel@suse.com>

-- 
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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] cifs: remove unused variable 'server'
  2020-07-08 14:15 ` Aurélien Aptel
@ 2020-07-08 19:16   ` Steve French
  0 siblings, 0 replies; 3+ messages in thread
From: Steve French @ 2020-07-08 19:16 UTC (permalink / raw)
  To: Aurélien Aptel
  Cc: Wei Yongjun, Hulk Robot, Steve French, CIFS, samba-technical

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

On Wed, Jul 8, 2020 at 9:16 AM Aurélien Aptel via samba-technical
<samba-technical@lists.samba.org> wrote:
>
>
> Reviewed-by: Aurelien Aptel <aaptel@suse.com>
>
> --
> 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)
>


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-08 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 11:27 [PATCH -next] cifs: remove unused variable 'server' Wei Yongjun
2020-07-08 14:15 ` Aurélien Aptel
2020-07-08 19:16   ` Steve French

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.