summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/smb2transport.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2025-10-09 17:00:13 +0200
committerSteve French <stfrench@microsoft.com>2025-10-09 10:40:43 -0500
commit1643cd51ba975f484a09bed42d1a2014c42c9e6d (patch)
tree775f6e15fe3e767919ea9db51d360b1674a8964a /fs/smb/client/smb2transport.c
parentsmb: client: Return directly after a failed genlmsg_new() in cifs_swn_send_re... (diff)
downloadlinux-1643cd51ba975f484a09bed42d1a2014c42c9e6d.tar.gz
linux-1643cd51ba975f484a09bed42d1a2014c42c9e6d.zip
smb: client: Omit an if branch in smb2_find_smb_tcon()
Statements from an if branch and the end of this function implementation were equivalent. Thus delete duplicate source code. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/smb/client/smb2transport.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/smb/client/smb2transport.c b/fs/smb/client/smb2transport.c
index bc0e92eb2b64..33f33013b392 100644
--- a/fs/smb/client/smb2transport.c
+++ b/fs/smb/client/smb2transport.c
@@ -240,11 +240,6 @@ smb2_find_smb_tcon(struct TCP_Server_Info *server, __u64 ses_id, __u32 tid)
return NULL;
}
tcon = smb2_find_smb_sess_tcon_unlocked(ses, tid);
- if (!tcon) {
- spin_unlock(&cifs_tcp_ses_lock);
- cifs_put_smb_ses(ses);
- return NULL;
- }
spin_unlock(&cifs_tcp_ses_lock);
/* tcon already has a ref to ses, so we don't need ses anymore */
cifs_put_smb_ses(ses);