diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2017-10-16 04:33:56 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-10-16 11:29:28 +0200 |
commit | 2e20c9ddae0b3770abca4b9b1a5243d6841bdd84 (patch) | |
tree | 4a4f42a95cb2847504c196bcacbf80d05689c7b4 /include | |
parent | drm/gma500: use ARRAY_SIZE (diff) | |
download | linux-2e20c9ddae0b3770abca4b9b1a5243d6841bdd84.tar.xz linux-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 'include')
0 files changed, 0 insertions, 0 deletions