Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Remove redundant itermediate return val in sdma_v4_0.c

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Rex Zhu and committed by
Alex Deucher
79690b84 aef1ba58

+1 -5
+1 -5
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
··· 744 744 if (r) 745 745 return r; 746 746 r = sdma_v4_0_rlc_resume(adev); 747 - if (r) 748 - return r; 749 747 750 - return 0; 748 + return r; 751 749 } 752 750 753 751 /** ··· 1156 1158 sdma_v4_0_init_golden_registers(adev); 1157 1159 1158 1160 r = sdma_v4_0_start(adev); 1159 - if (r) 1160 - return r; 1161 1161 1162 1162 return r; 1163 1163 }