Commit c4c433b6 authored by Chengchang Tang's avatar Chengchang Tang Committed by Juan Zhou
Browse files

RDMA/hns: Remove extra blank line in get_sge_num_from_max_inl_data()

driver inclusion
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/I8LY0D



--------------------------------------------------------------------------

Remove redundant blank lines between value judgments and function calls.

Signed-off-by: default avatarChengchang Tang <tangchengchang@huawei.com>
parent 97d8b136
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -545,13 +545,12 @@ static unsigned int get_sge_num_from_max_inl_data(bool is_ud_or_gsi,
{
	unsigned int inline_sge;

	inline_sge = roundup_pow_of_two(max_inline_data) / HNS_ROCE_SGE_SIZE;

	/*
	 * if max_inline_data less than
	 * HNS_ROCE_SGE_IN_WQE * HNS_ROCE_SGE_SIZE,
	 * In addition to ud's mode, no need to extend sge.
	 */
	inline_sge = roundup_pow_of_two(max_inline_data) / HNS_ROCE_SGE_SIZE;
	if ((!is_ud_or_gsi) && (inline_sge <= HNS_ROCE_SGE_IN_WQE))
		inline_sge = 0;