Skip to content

Commit 7c98623

Browse files
Wang LiangNipaLocal
authored andcommitted
net/smc: remove unused input parameters in smc_buf_get_slot
The input parameter "compressed_bufsize" of smc_buf_get_slot is unused, remove it. Signed-off-by: Wang Liang <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 499834b commit 7c98623

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

net/smc/smc_core.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,8 +2100,7 @@ int smc_uncompress_bufsize(u8 compressed)
21002100
/* try to reuse a sndbuf or rmb description slot for a certain
21012101
* buffer size; if not available, return NULL
21022102
*/
2103-
static struct smc_buf_desc *smc_buf_get_slot(int compressed_bufsize,
2104-
struct rw_semaphore *lock,
2103+
static struct smc_buf_desc *smc_buf_get_slot(struct rw_semaphore *lock,
21052104
struct list_head *buf_list)
21062105
{
21072106
struct smc_buf_desc *buf_slot;
@@ -2442,7 +2441,7 @@ static int __smc_buf_create(struct smc_sock *smc, bool is_smcd, bool is_rmb)
24422441
bufsize = smc_uncompress_bufsize(bufsize_comp);
24432442

24442443
/* check for reusable slot in the link group */
2445-
buf_desc = smc_buf_get_slot(bufsize_comp, lock, buf_list);
2444+
buf_desc = smc_buf_get_slot(lock, buf_list);
24462445
if (buf_desc) {
24472446
buf_desc->is_dma_need_sync = 0;
24482447
SMC_STAT_RMB_SIZE(smc, is_smcd, is_rmb, true, bufsize);

0 commit comments

Comments
 (0)