net/smc: remove redundant code in smc_connect_check_aclc
authorZhengchao Shao <shaozhengchao@huawei.com>
Tue, 30 Jul 2024 01:25:05 +0000 (09:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2024 10:48:58 +0000 (11:48 +0100)
commitd37307eaac13f3c5fe912787b5f9facbc574f2cf
tree62f7df6eabc832ffb10da160911cf3aaa51a33e9
parent5a79575711264b98b435e08107c9e5bf129df210
net/smc: remove redundant code in smc_connect_check_aclc

When the SMC client perform CLC handshake, it will check whether
the clc header type is correct in receiving SMC_CLC_ACCEPT packet.
The specific invoking path is as follows:
__smc_connect
  smc_connect_clc
    smc_clc_wait_msg
      smc_clc_msg_hdr_valid
        smc_clc_msg_acc_conf_valid
Therefore, the smc_connect_check_aclc interface invoked by
__smc_connect does not need to check type again.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c