Skip to content

Commit 1643cd5

Browse files
elfringsmfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 4468490 commit 1643cd5

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

fs/smb/client/smb2transport.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ smb2_find_smb_tcon(struct TCP_Server_Info *server, __u64 ses_id, __u32 tid)
240240
return NULL;
241241
}
242242
tcon = smb2_find_smb_sess_tcon_unlocked(ses, tid);
243-
if (!tcon) {
244-
spin_unlock(&cifs_tcp_ses_lock);
245-
cifs_put_smb_ses(ses);
246-
return NULL;
247-
}
248243
spin_unlock(&cifs_tcp_ses_lock);
249244
/* tcon already has a ref to ses, so we don't need ses anymore */
250245
cifs_put_smb_ses(ses);

0 commit comments

Comments
 (0)