diff options
| author | Jérémy Lefaure <[email protected]> | 2017-10-01 15:30:41 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-12-08 10:11:00 -0500 |
| commit | e40d14a89760632238f67c1f96c852652a137f2d (patch) | |
| tree | 3c9a1c7729242a9725254a1ffe3e6a5de40da63d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 37d5efb01910752d8d3846a2c4db0528c1dfa137 (diff) | |
media: 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]>
Reviewed-by: Michael Ira Krufky <[email protected]>
Signed-off-by: Hans Verkuil <[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