Skip to content

Commit 59f7265

Browse files
committed
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 <[email protected]>
2 parents b735154 + 0908503 commit 59f7265

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

net/smc/af_smc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,10 +1466,6 @@ static int smc_connect_ism(struct smc_sock *smc,
14661466
static int smc_connect_check_aclc(struct smc_init_info *ini,
14671467
struct smc_clc_msg_accept_confirm *aclc)
14681468
{
1469-
if (aclc->hdr.typev1 != SMC_TYPE_R &&
1470-
aclc->hdr.typev1 != SMC_TYPE_D)
1471-
return SMC_CLC_DECL_MODEUNSUPP;
1472-
14731469
if (aclc->hdr.version >= SMC_V2) {
14741470
if ((aclc->hdr.typev1 == SMC_TYPE_R &&
14751471
!smcr_indicated(ini->smc_type_v2)) ||
@@ -1523,10 +1519,6 @@ static int __smc_connect(struct smc_sock *smc)
15231519
ini->smcd_version &= ~SMC_V1;
15241520
ini->smcr_version = 0;
15251521
ini->smc_type_v1 = SMC_TYPE_N;
1526-
if (!ini->smcd_version) {
1527-
rc = SMC_CLC_DECL_GETVLANERR;
1528-
goto fallback;
1529-
}
15301522
}
15311523

15321524
rc = smc_find_proposal_devices(smc, ini);

net/smc/smc_core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ int smcr_buf_reg_lgr(struct smc_link *lnk)
22502250
}
22512251

22522252
static struct smc_buf_desc *smcr_new_buf_create(struct smc_link_group *lgr,
2253-
bool is_rmb, int bufsize)
2253+
int bufsize)
22542254
{
22552255
struct smc_buf_desc *buf_desc;
22562256

@@ -2398,7 +2398,7 @@ static int __smc_buf_create(struct smc_sock *smc, bool is_smcd, bool is_rmb)
23982398
if (is_smcd)
23992399
buf_desc = smcd_new_buf_create(lgr, is_rmb, bufsize);
24002400
else
2401-
buf_desc = smcr_new_buf_create(lgr, is_rmb, bufsize);
2401+
buf_desc = smcr_new_buf_create(lgr, bufsize);
24022402

24032403
if (PTR_ERR(buf_desc) == -ENOMEM)
24042404
break;

net/smc/smc_loopback.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define _SMC_LOOPBACK_H
1616

1717
#include <linux/device.h>
18-
#include <linux/err.h>
1918
#include <net/smc.h>
2019

2120
#if IS_ENABLED(CONFIG_SMC_LO)

0 commit comments

Comments
 (0)