Skip to content

Commit 066d36d

Browse files
Wang LiangNipaLocal
authored andcommitted
net/smc: remove unused function smc_lo_supports_v2
The smcd_ops->supports_v2 is only called in smcd_register_dev(), which calls function smcd_supports_v2 for ism. For loopback-ism, function smc_lo_supports_v2 is unused, remove it. Signed-off-by: Wang Liang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 3310b78 commit 066d36d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

net/smc/smc_loopback.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ static int smc_lo_move_data(struct smcd_dev *smcd, u64 dmb_tok,
251251
return 0;
252252
}
253253

254-
static int smc_lo_supports_v2(void)
255-
{
256-
return SMC_LO_V2_CAPABLE;
257-
}
258-
259254
static void smc_lo_get_local_gid(struct smcd_dev *smcd,
260255
struct smcd_gid *smcd_gid)
261256
{
@@ -288,7 +283,6 @@ static const struct smcd_ops lo_ops = {
288283
.reset_vlan_required = NULL,
289284
.signal_event = NULL,
290285
.move_data = smc_lo_move_data,
291-
.supports_v2 = smc_lo_supports_v2,
292286
.get_local_gid = smc_lo_get_local_gid,
293287
.get_chid = smc_lo_get_chid,
294288
.get_dev = smc_lo_get_dev,

0 commit comments

Comments
 (0)