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)
commit40cf7fbe8a43b1d8c3c0139423abbeb9625a909a
tree889f52fe025faaa0e930855377882621c2d1a5de
parentddc2118ef064ca130f06716829e11e02b3915fd0
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