Commit 3fd8dc26 authored by Huazhong Tan's avatar Huazhong Tan Committed by David S. Miller
Browse files

net: hns3: remove an unnecessary check in hclge_set_umv_space()



Since hclge_set_umv_space() is only called by hclge_init_umv_space(),
parameter 'allocated_size' will not be NULL.

Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 659d4587
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -7227,7 +7227,6 @@ static int hclge_set_umv_space(struct hclge_dev *hdev, u16 space_size,
		return ret;
	}

	if (allocated_size)
	*allocated_size = le32_to_cpu(desc.data[1]);

	return 0;