net/smc: introduce sub-functions for smc_clc_send_confirm_accept()
authorWen Gu <guwen@linux.alibaba.com>
Tue, 19 Dec 2023 14:26:08 +0000 (22:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Dec 2023 20:24:32 +0000 (20:24 +0000)
commit5205ac4483b630e47c65f192a3ac19be7a8ea648
treec9e13bbe7f663dafeb832d0a2fa007028edbb4ad
parentac053a169c71ceb0f25f784fce9ea720455097b4
net/smc: introduce sub-functions for smc_clc_send_confirm_accept()

There is a large if-else block in smc_clc_send_confirm_accept() and it
is better to split it into two sub-functions.

Suggested-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_clc.c