Re: [PATCH -next v3] hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler
From: David Miller
Date: Thu Apr 30 2020 - 14:57:56 EST
From: Zou Wei <zou_wei@xxxxxxxxxx>
Date: Thu, 30 Apr 2020 09:51:31 +0800
> 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@xxxxxxxxxx>
> Signed-off-by: Zou Wei <zou_wei@xxxxxxxxxx>
Applied.