Skip to content

Commit 40b9422

Browse files
committed
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 <[email protected]>
1 parent 6c5af96 commit 40b9422

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

net/smc/smc_llc.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -541,30 +541,6 @@ static int smc_llc_send_message(struct smc_link *link, void *llcbuf)
541541

542542
/********************************* receive ***********************************/
543543

544-
static int smc_llc_alloc_alt_link(struct smc_link_group *lgr,
545-
enum smc_lgr_type lgr_new_t)
546-
{
547-
int i;
548-
549-
if (lgr->type == SMC_LGR_SYMMETRIC ||
550-
(lgr->type != SMC_LGR_SINGLE &&
551-
(lgr_new_t == SMC_LGR_ASYMMETRIC_LOCAL ||
552-
lgr_new_t == SMC_LGR_ASYMMETRIC_PEER)))
553-
return -EMLINK;
554-
555-
if (lgr_new_t == SMC_LGR_ASYMMETRIC_LOCAL ||
556-
lgr_new_t == SMC_LGR_ASYMMETRIC_PEER) {
557-
for (i = SMC_LINKS_PER_LGR_MAX - 1; i >= 0; i--)
558-
if (lgr->lnk[i].state == SMC_LNK_UNUSED)
559-
return i;
560-
} else {
561-
for (i = 0; i < SMC_LINKS_PER_LGR_MAX; i++)
562-
if (lgr->lnk[i].state == SMC_LNK_UNUSED)
563-
return i;
564-
}
565-
return -EMLINK;
566-
}
567-
568544
/* worker to process an add link message */
569545
static void smc_llc_add_link_work(struct work_struct *work)
570546
{

0 commit comments

Comments
 (0)