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

drm/amdgpu: simplify the return expression of iceland_ih_hw_init

Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Minghao Chi and committed by
Alex Deucher
3453677a 2929a6bf

+1 -6
+1 -6
drivers/gpu/drm/amd/amdgpu/iceland_ih.c
··· 308 308 309 309 static int iceland_ih_hw_init(void *handle) 310 310 { 311 - int r; 312 311 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 313 312 314 - r = iceland_ih_irq_init(adev); 315 - if (r) 316 - return r; 317 - 318 - return 0; 313 + return iceland_ih_irq_init(adev); 319 314 } 320 315 321 316 static int iceland_ih_hw_fini(void *handle)