Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Huazhong Tan and committed by
David S. Miller
3fd8dc26 659d4587

+1 -2
+1 -2
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
··· 7227 7227 return ret; 7228 7228 } 7229 7229 7230 - if (allocated_size) 7231 - *allocated_size = le32_to_cpu(desc.data[1]); 7230 + *allocated_size = le32_to_cpu(desc.data[1]); 7232 7231 7233 7232 return 0; 7234 7233 }