Re: [PATCH] drm/amd/display: Use ARRAY_SIZE for array length

2024-06-24 Thread Alex Deucher
Applied. Thanks! On Sun, Jun 23, 2024 at 11:37 PM Jiapeng Chong wrote: > > Use of macro ARRAY_SIZE to calculate array size minimizes > the redundant code and improves code reusability. > > ./drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c:164:45-46: WARNING: Use > ARRAY_SIZE. > ./drivers/gp

[PATCH] drm/amd/display: Use ARRAY_SIZE for array length

2024-06-23 Thread Jiapeng Chong
Use of macro ARRAY_SIZE to calculate array size minimizes the redundant code and improves code reusability. ./drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c:164:45-46: WARNING: Use ARRAY_SIZE. ./drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c:183:47-48: WARNING: Use ARRAY_SIZE. ./driver