Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Roman Smirnov and committed by
Steve French
be5d361e 25108594

+1 -5
+1 -5
fs/smb/client/connect.c
··· 1731 1731 */ 1732 1732 tcp_ses->tcpStatus = CifsNew; 1733 1733 ++tcp_ses->srv_count; 1734 + tcp_ses->echo_interval = ctx->echo_interval * HZ; 1734 1735 1735 - if (ctx->echo_interval >= SMB_ECHO_INTERVAL_MIN && 1736 - ctx->echo_interval <= SMB_ECHO_INTERVAL_MAX) 1737 - tcp_ses->echo_interval = ctx->echo_interval * HZ; 1738 - else 1739 - tcp_ses->echo_interval = SMB_ECHO_INTERVAL_DEFAULT * HZ; 1740 1736 if (tcp_ses->rdma) { 1741 1737 #ifndef CONFIG_CIFS_SMB_DIRECT 1742 1738 cifs_dbg(VFS, "CONFIG_CIFS_SMB_DIRECT is not enabled\n");