summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
diff options
context:
space:
mode:
authorDheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com>2024-12-12 13:56:24 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-12-18 20:16:05 +0300
commit69b54d7c7c9435462322e451207a0de9b3409751 (patch)
tree8162d6310a4611c61defbe7b583e4fdbdaa41045 /drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
parent7e50642d41050c2182368171d5afb0543b38f379 (diff)
downloadlinux-69b54d7c7c9435462322e451207a0de9b3409751.tar.xz
drm/amdgpu: simplify return statement in amdgpu_ras_eeprom_init
Remove the logically dead code in the last return statement of amdgpu_ras_eeprom_init. The condition res < 0 is redundant since res is already checked for a negative value earlier. Replace return res < 0 ? res : 0; with return 0 to improve clarity. Fixes: 63d4c081a556 ("drm/amdgpu: Optimize EEPROM RAS table I/O") Closes: https://scan7.scan.coverity.com/#/project-view/52337/11354?selectedIssue=1602413 Signed-off-by: Dheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c')
0 files changed, 0 insertions, 0 deletions