mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 16:17:41 -04:00
cifs: remove unreachable code in cifs_get_tcp_session()
echo_interval is checked at mount time, the code has become unreachable. Signed-off-by: Roman Smirnov <r.smirnov@omp.ru> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
committed by
Steve French
parent
2510859475
commit
be5d361e30
@@ -1731,12 +1731,8 @@ cifs_get_tcp_session(struct smb3_fs_context *ctx,
|
||||
*/
|
||||
tcp_ses->tcpStatus = CifsNew;
|
||||
++tcp_ses->srv_count;
|
||||
tcp_ses->echo_interval = ctx->echo_interval * HZ;
|
||||
|
||||
if (ctx->echo_interval >= SMB_ECHO_INTERVAL_MIN &&
|
||||
ctx->echo_interval <= SMB_ECHO_INTERVAL_MAX)
|
||||
tcp_ses->echo_interval = ctx->echo_interval * HZ;
|
||||
else
|
||||
tcp_ses->echo_interval = SMB_ECHO_INTERVAL_DEFAULT * HZ;
|
||||
if (tcp_ses->rdma) {
|
||||
#ifndef CONFIG_CIFS_SMB_DIRECT
|
||||
cifs_dbg(VFS, "CONFIG_CIFS_SMB_DIRECT is not enabled\n");
|
||||
|
||||
Reference in New Issue
Block a user