drm/amd/ras: Optimize and remove redundant code

Optimize and remove redundant code.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
YiPeng Chai 2026-02-05 14:43:13 +08:00 • committed by Alex Deucher
commit a673a82f5d