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

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
......@@ -7227,8 +7227,7 @@ 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]);
*allocated_size = le32_to_cpu(desc.data[1]);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment