diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2017-10-15 22:29:23 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-19 15:27:11 -0400 |
commit | c1b24a1405ed8720f5837fc77fbc52fd008cbb42 (patch) | |
tree | 005ff7c635183d02b14ef07ad2bd486e07b3ac2c /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 2642cf110d08a403f585a051e4cbf45a90b3adea (diff) |
drm/amdgpu: 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: Christian König <christian.koenig@amd.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions