summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/iavf/iavf_main.c
diff options
context:
space:
mode:
authorGuo Zhengkui <guozhengkui@vivo.com>2022-03-16 17:28:57 +0800
committerPaolo Abeni <pabeni@redhat.com>2022-03-17 15:21:16 +0100
commit1abea24af42c35c6eb537e4402836e2cde2a5b13 (patch)
tree431b689970b3d514588729d863cca40a4d1eaf7a /drivers/net/ethernet/intel/iavf/iavf_main.c
parent58e06d05d43a9e37e121edabaada00a9d844444c (diff)
selftests: net: fix array_size.cocci warning
Fix array_size.cocci warning in tools/testing/selftests/net. Use `ARRAY_SIZE(arr)` instead of forms like `sizeof(arr)/sizeof(arr[0])`. It has been tested with gcc (Debian 8.3.0-6) 8.3.0. Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com> Link: https://lore.kernel.org/r/20220316092858.9398-1-guozhengkui@vivo.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/intel/iavf/iavf_main.c')
0 files changed, 0 insertions, 0 deletions