Commit be5d361e authored by Roman Smirnov's avatar Roman Smirnov Committed by Steve French
Browse files

cifs: remove unreachable code in cifs_get_tcp_session()



echo_interval is checked at mount time, the code has become
unreachable.

Signed-off-by: default avatarRoman Smirnov <r.smirnov@omp.ru>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 25108594
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1731,12 +1731,8 @@ cifs_get_tcp_session(struct smb3_fs_context *ctx,
	 */
	tcp_ses->tcpStatus = CifsNew;
	++tcp_ses->srv_count;

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