summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_atomic_helper.c
diff options
context:
space:
mode:
authorJérémy Lefaure2017-10-16 04:33:56 +0200
committerDaniel Vetter2017-10-16 11:29:28 +0200
commit2e20c9ddae0b3770abca4b9b1a5243d6841bdd84 (patch)
tree4a4f42a95cb2847504c196bcacbf80d05689c7b4 /drivers/gpu/drm/drm_atomic_helper.c
parentdrm/gma500: use ARRAY_SIZE (diff)
downloadkernel-qcow2-linux-2e20c9ddae0b3770abca4b9b1a5243d6841bdd84.tar.gz
kernel-qcow2-linux-2e20c9ddae0b3770abca4b9b1a5243d6841bdd84.tar.xz
kernel-qcow2-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 'drivers/gpu/drm/drm_atomic_helper.c')
0 files changed, 0 insertions, 0 deletions