aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2021-08-17 20:11:06 +0800
committerJakub Kicinski <[email protected]>2021-08-18 15:16:54 -0700
commit19b8ece42c56aaa122f7e91eb391bb3dd7e193cd (patch)
treed2ee5a8fd748598833a44200783b1ed36a877b1b /tools/perf/scripts/python
parent7e5a3ef6b4e6cf9b0a04b8906d02f7c896f5b85c (diff)
net/mlx4: Use ARRAY_SIZE to get an array's size
The ARRAY_SIZE macro is defined to get an array's size which is more compact and more formal in linux source. Thus, we can replace the long sizeof(arr)/sizeof(arr[0]) with the compact ARRAY_SIZE. Signed-off-by: Jason Wang <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions