]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler
authorZou Wei <zou_wei@huawei.com>
Thu, 30 Apr 2020 01:51:31 +0000 (09:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 18:53:12 +0000 (11:53 -0700)
commit19721ba3c72b946517284a5b86f28adef5851698
tree889f52fe025faaa0e930855377882621c2d1a5de
parentdf3f1d770e25560e4c5d1dfd979715ff7a706ffb
hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler

fix coccinelle warning, use ARRAY_SIZE

drivers/net/ethernet/huawei/hinic/hinic_sriov.c:713:43-44: WARNING: Use ARRAY_SIZE

v1-->v2:
   remove cmd_number

v2-->v3:
   preserve the reverse christmas tree ordering of local variables

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_sriov.c