aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJérémy Lefaure <[email protected]>2017-10-16 08:45:17 +0300
committerDoug Ledford <[email protected]>2017-10-18 12:16:14 -0400
commite980b44134c89afb65176e70aaf293d608002e83 (patch)
tree644a64b104e9cfdbc4cf7d80cd756cf36d454a13 /tools/perf/scripts/python
parent99260132fde7bddc6e0132ce53da94d1c9ccabcb (diff)
IB/mlx5: Use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy Lefaure <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions