diff options
| author | Jiapeng Chong <[email protected]> | 2024-06-24 03:11:58 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-06-27 21:10:39 +0000 |
| commit | b72585f1c2228630e5fc5bf1b8a1f68cdcd8a446 (patch) | |
| tree | 9561f50e8b680e3dc51c6ae0ed94f699e54ba288 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
| parent | drm/amd/display: Fix Makefile copyright notices (diff) | |
| download | kernel-b72585f1c2228630e5fc5bf1b8a1f68cdcd8a446.tar.gz kernel-b72585f1c2228630e5fc5bf1b8a1f68cdcd8a446.zip | |
drm/amd/display: Use ARRAY_SIZE for array length
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.
./drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c:237:45-46: WARNING: Use ARRAY_SIZE.
./drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c:257:47-48: WARNING: Use ARRAY_SIZE.
Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9405
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
0 files changed, 0 insertions, 0 deletions
