summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <usama.anjum@collabora.com>2022-01-04 22:24:37 +0100
committerSteve French <stfrench@microsoft.com>2022-01-19 18:10:54 +0100
commit8a409cda978e212661b8c032e1b08b3b0b0f9d36 (patch)
treed59ea115fd9c613b363ff4ba458e7b53f7bc86ec /fs
parentcifs: protect all accesses to chan_* with chan_lock (diff)
downloadlinux-8a409cda978e212661b8c032e1b08b3b0b0f9d36.tar.xz
linux-8a409cda978e212661b8c032e1b08b3b0b0f9d36.zip
cifs: remove unused variable ses_selected
ses_selected is being declared and set at several places. It is not being used. Remove it. Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/smb2pdu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index ca8a16896f17..202ddbafe939 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -3795,7 +3795,7 @@ void smb2_reconnect_server(struct work_struct *work)
struct cifs_tcon *tcon, *tcon2;
struct list_head tmp_list, tmp_ses_list;
bool tcon_exist = false, ses_exist = false;
- bool tcon_selected = false, ses_selected = false;
+ bool tcon_selected = false;
int rc;
bool resched = false;
@@ -3812,7 +3812,7 @@ void smb2_reconnect_server(struct work_struct *work)
spin_lock(&cifs_tcp_ses_lock);
list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) {
- tcon_selected = ses_selected = false;
+ tcon_selected = false;
list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
if (tcon->need_reconnect || tcon->need_reopen_files) {
@@ -3838,7 +3838,7 @@ void smb2_reconnect_server(struct work_struct *work)
spin_lock(&ses->chan_lock);
if (!tcon_selected && cifs_chan_needs_reconnect(ses, server)) {
list_add_tail(&ses->rlist, &tmp_ses_list);
- ses_selected = ses_exist = true;
+ ses_exist = true;
ses->ses_count++;
}
spin_unlock(&ses->chan_lock);