aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorJérémy Lefaure <[email protected]>2017-11-13 22:19:41 -0500
committerKalle Valo <[email protected]>2017-12-08 15:19:46 +0200
commit53ac793593275a7d9cf9cd3d88e730f6c2521730 (patch)
tree3c3e56cc96bce7a8cece664cc9af5b2d281f40c3 /tools/perf/scripts/python/net_dropmonitor.py
parent59365b9efd48b113badfa9dafbb391ef84fa7b08 (diff)
wireless: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is not always useful to use a variable to store this constant calculated at compile time. 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: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions