diff options
author | Jérémy Lefaure <[email protected]> | 2017-10-15 22:29:23 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 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 <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Signed-off-by: Jérémy Lefaure <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions