diff options
author | 2017-10-15 22:33:56 -0400 | |
---|---|---|
committer | 2017-10-16 11:29:28 +0200 | |
commit | 2e20c9ddae0b3770abca4b9b1a5243d6841bdd84 (patch) | |
tree | 4a4f42a95cb2847504c196bcacbf80d05689c7b4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/gma500: use ARRAY_SIZE (diff) | |
download | linux-dev-2e20c9ddae0b3770abca4b9b1a5243d6841bdd84.tar.xz linux-dev-2e20c9ddae0b3770abca4b9b1a5243d6841bdd84.zip |
drm/via: 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))
)
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171016023357.20174-1-jeremy.lefaure@lse.epita.fr
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions