mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
Merge branch 'smc-cleanups' into main
Zhengchao Shao says: ==================== net/smc: do some cleanups in smc module Do some cleanups in smc module. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
59f726578c
@ -1466,10 +1466,6 @@ connect_abort:
|
||||
static int smc_connect_check_aclc(struct smc_init_info *ini,
|
||||
struct smc_clc_msg_accept_confirm *aclc)
|
||||
{
|
||||
if (aclc->hdr.typev1 != SMC_TYPE_R &&
|
||||
aclc->hdr.typev1 != SMC_TYPE_D)
|
||||
return SMC_CLC_DECL_MODEUNSUPP;
|
||||
|
||||
if (aclc->hdr.version >= SMC_V2) {
|
||||
if ((aclc->hdr.typev1 == SMC_TYPE_R &&
|
||||
!smcr_indicated(ini->smc_type_v2)) ||
|
||||
@ -1523,10 +1519,6 @@ static int __smc_connect(struct smc_sock *smc)
|
||||
ini->smcd_version &= ~SMC_V1;
|
||||
ini->smcr_version = 0;
|
||||
ini->smc_type_v1 = SMC_TYPE_N;
|
||||
if (!ini->smcd_version) {
|
||||
rc = SMC_CLC_DECL_GETVLANERR;
|
||||
goto fallback;
|
||||
}
|
||||
}
|
||||
|
||||
rc = smc_find_proposal_devices(smc, ini);
|
||||
|
@ -2250,7 +2250,7 @@ int smcr_buf_reg_lgr(struct smc_link *lnk)
|
||||
}
|
||||
|
||||
static struct smc_buf_desc *smcr_new_buf_create(struct smc_link_group *lgr,
|
||||
bool is_rmb, int bufsize)
|
||||
int bufsize)
|
||||
{
|
||||
struct smc_buf_desc *buf_desc;
|
||||
|
||||
@ -2398,7 +2398,7 @@ static int __smc_buf_create(struct smc_sock *smc, bool is_smcd, bool is_rmb)
|
||||
if (is_smcd)
|
||||
buf_desc = smcd_new_buf_create(lgr, is_rmb, bufsize);
|
||||
else
|
||||
buf_desc = smcr_new_buf_create(lgr, is_rmb, bufsize);
|
||||
buf_desc = smcr_new_buf_create(lgr, bufsize);
|
||||
|
||||
if (PTR_ERR(buf_desc) == -ENOMEM)
|
||||
break;
|
||||
|
@ -15,7 +15,6 @@
|
||||
#define _SMC_LOOPBACK_H
|
||||
|
||||
#include <linux/device.h>
|
||||
#include <linux/err.h>
|
||||
#include <net/smc.h>
|
||||
|
||||
#if IS_ENABLED(CONFIG_SMC_LO)
|
||||
|
Loading…
Reference in New Issue
Block a user