aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJérémy Lefaure <[email protected]>2017-10-15 22:30:46 -0400
committerDaniel Vetter <[email protected]>2017-10-16 11:29:05 +0200
commitc7d234dc671d17c4c9b89fd30102a2fc619ecf7e (patch)
tree8dc31811d65284c5895f5bdeb1a70d5ec20eb98c /lib/mpi/mpiutil.c
parentbfddd1469740ea27439afa866bff41ef1cd22bb1 (diff)
drm/gma500: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is useless to re-invent it. 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 <[email protected]> Signed-off-by: Jérémy Lefaure <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions