Skip to content
Commit 1abea24a authored by Guo Zhengkui's avatar Guo Zhengkui Committed by Paolo Abeni
Browse files

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: default avatarGuo Zhengkui <guozhengkui@vivo.com>
Link: https://lore.kernel.org/r/20220316092858.9398-1-guozhengkui@vivo.com
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 58e06d05
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment