diff options
| author | Jérémy Lefaure <[email protected]> | 2017-10-01 21:30:54 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-10-27 15:38:24 +0200 |
| commit | bc64ce98d6493337b61b958da454ecc9b35237a5 (patch) | |
| tree | 4e605bb530ce52e78c55651f0877bf52d890f20d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 79bd3daaa86e9734289bfd0c994633fee381973e (diff) | |
media: staging: atomisp: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also,
it is useless 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: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions