Commit c3ee72de authored by Wang Liang's avatar Wang Liang Committed by Jakub Kicinski
Browse files

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: default avatarWang Liang <wangliang74@huawei.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250618103342.1423913-1-wangliang74@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f64bd204
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2100,8 +2100,7 @@ int smc_uncompress_bufsize(u8 compressed)
/* try to reuse a sndbuf or rmb description slot for a certain
 * buffer size; if not available, return NULL
 */
static struct smc_buf_desc *smc_buf_get_slot(int compressed_bufsize,
					     struct rw_semaphore *lock,
static struct smc_buf_desc *smc_buf_get_slot(struct rw_semaphore *lock,
					     struct list_head *buf_list)
{
	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)
		bufsize = smc_uncompress_bufsize(bufsize_comp);

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