diff options
author | 2022-03-16 17:28:57 +0800 | |
---|---|---|
committer | 2022-03-17 15:21:16 +0100 | |
commit | 1abea24af42c35c6eb537e4402836e2cde2a5b13 (patch) | |
tree | 431b689970b3d514588729d863cca40a4d1eaf7a /net | |
parent | net: stmmac: clean up impossible condition (diff) | |
download | linux-1abea24af42c35c6eb537e4402836e2cde2a5b13.tar.gz linux-1abea24af42c35c6eb537e4402836e2cde2a5b13.tar.bz2 linux-1abea24af42c35c6eb537e4402836e2cde2a5b13.zip |
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 'net')
0 files changed, 0 insertions, 0 deletions