]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: remove an unnecessary check in hclge_set_umv_space()
authorHuazhong Tan <tanhuazhong@huawei.com>
Sun, 26 Apr 2020 02:13:48 +0000 (10:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Apr 2020 03:56:45 +0000 (20:56 -0700)
commite7d8636bdf9917244b8e69a33e4f6c22ac0553b6
tree45de51f020ff265a5430d1aae4e5ceef216e314f
parent5c401c084b6d784381008f8bb6b4321c2538b905
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c