]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit3fd8dc269ff0647819589c21b2ce60af6fc0a455
tree45de51f020ff265a5430d1aae4e5ceef216e314f
parent659d4587fe7233bfdff303744b20d6f41ad04362
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