]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: hns3: set default value for param "type" in hclgevf_bind_ring_to_vector
authorPeng Li <lipeng321@huawei.com>
Thu, 4 Jul 2019 14:04:24 +0000 (22:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:39:38 +0000 (15:39 -0700)
commitc09ba484563c17f90ec91b46322c31d3440acc42
tree32b94183c518602581d74530bdf28574f438dccf
parent9e1511fb8091e3f5b23bb21f32e9394bedc6c34e
net: hns3: set default value for param "type" in hclgevf_bind_ring_to_vector

The value of param type is always not changed in
hclgevf_bind_ring_to_vector, move the assignment to
front of "for {}" can reduce the redundant assignment.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c