summaryrefslogtreecommitdiff
path: root/net/smc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2020-05-02 16:41:06 -0700
committerDavid S. Miller <davem@davemloft.net>2020-05-02 16:41:06 -0700
commit40b94224c339e44f689e713875c6c27c9c1270a7 (patch)
treeee77c383da3add35eb71d9844341c122ede4ad69 /net/smc
parent6c5af965c09b55056adb88982d1de439bd021579 (diff)
smc: Remove unused function.
net/smc/smc_llc.c:544:12: warning: ‘smc_llc_alloc_alt_link’ defined but not used [-Wunused-function] static int smc_llc_alloc_alt_link(struct smc_link_group *lgr, ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
-rw-r--r--net/smc/smc_llc.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/net/smc/smc_llc.c b/net/smc/smc_llc.c
index 50f59746bdf9..4e3db4d4b783 100644
--- a/net/smc/smc_llc.c
+++ b/net/smc/smc_llc.c
@@ -541,30 +541,6 @@ static int smc_llc_send_message(struct smc_link *link, void *llcbuf)
/********************************* receive ***********************************/
-static int smc_llc_alloc_alt_link(struct smc_link_group *lgr,
- enum smc_lgr_type lgr_new_t)
-{
- int i;
-
- if (lgr->type == SMC_LGR_SYMMETRIC ||
- (lgr->type != SMC_LGR_SINGLE &&
- (lgr_new_t == SMC_LGR_ASYMMETRIC_LOCAL ||
- lgr_new_t == SMC_LGR_ASYMMETRIC_PEER)))
- return -EMLINK;
-
- if (lgr_new_t == SMC_LGR_ASYMMETRIC_LOCAL ||
- lgr_new_t == SMC_LGR_ASYMMETRIC_PEER) {
- for (i = SMC_LINKS_PER_LGR_MAX - 1; i >= 0; i--)
- if (lgr->lnk[i].state == SMC_LNK_UNUSED)
- return i;
- } else {
- for (i = 0; i < SMC_LINKS_PER_LGR_MAX; i++)
- if (lgr->lnk[i].state == SMC_LNK_UNUSED)
- return i;
- }
- return -EMLINK;
-}
-
/* worker to process an add link message */
static void smc_llc_add_link_work(struct work_struct *work)
{