Commit 021f989c authored by Jijie Shao's avatar Jijie Shao Committed by Jakub Kicinski
Browse files

net: hns3: change the function return type from int to bool



hclge_only_alloc_priv_buff() only return true or false,
So, change the function return type from integer to boolean.

Signed-off-by: default avatarJijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20250815100414.949752-3-shaojijie@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent e16e973c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2182,7 +2182,7 @@ static bool hclge_drop_pfc_buf_till_fit(struct hclge_dev *hdev,
	return hclge_is_rx_buf_ok(hdev, buf_alloc, rx_all);
}

static int hclge_only_alloc_priv_buff(struct hclge_dev *hdev,
static bool hclge_only_alloc_priv_buff(struct hclge_dev *hdev,
				       struct hclge_pkt_buf_alloc *buf_alloc)
{
#define COMPENSATE_BUFFER	0x3C00