summaryrefslogtreecommitdiffstats
path: root/arch/unicore32
diff options
context:
space:
mode:
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>2017-11-01 03:56:19 +1000
committerBen Skeggs <bskeggs@redhat.com>2017-11-02 13:32:15 +1000
commit73cef6cee71b7a1029e4951a97095c2e4fee4be7 (patch)
tree6ee8c34f0ac0d0444b9691120941c6181e05de4b /arch/unicore32
parentf5a5b5232b899c06626960b601d1943cc2fb21d9 (diff)
downloadtalos-op-linux-73cef6cee71b7a1029e4951a97095c2e4fee4be7.tar.gz
talos-op-linux-73cef6cee71b7a1029e4951a97095c2e4fee4be7.zip
drm/nouveau/bios/init: 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 <treding@nvidia.com> Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'arch/unicore32')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud