diff options
author | Thomas Meyer | 2017-09-03 14:19:31 +0200 |
---|---|---|
committer | David S. Miller | 2017-09-05 20:49:16 +0200 |
commit | 691223ec9798a617cb372470f4bf37e312d15063 (patch) | |
tree | 91f4f39b1b276cede7d4278665b8f779790a5715 /net/bridge | |
parent | Merge branch 'flow_dissector-fixes' (diff) | |
download | kernel-qcow2-linux-691223ec9798a617cb372470f4bf37e312d15063.tar.gz kernel-qcow2-linux-691223ec9798a617cb372470f4bf37e312d15063.tar.xz kernel-qcow2-linux-691223ec9798a617cb372470f4bf37e312d15063.zip |
net/mlx4_core: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it
yourself.
Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e
's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\)
/ARRAY_SIZE(\1)/g' and manual check/verification.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions