]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: cleanup error handling in amdgpu_cs_parser_bos
authorChristian König <christian.koenig@amd.com>
Tue, 13 Sep 2022 07:52:13 +0000 (09:52 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2022 19:18:16 +0000 (15:18 -0400)
commit2f8b989f0ba1e4d81dbfe93b0efb25cd35ad2526
tree205310fe1695a3e30011f9396088da3516680fe1
parentfd6bfe3e3e056ae9decf929493f0c6e25d5730b4
drm/amdgpu: cleanup error handling in amdgpu_cs_parser_bos

Return early on success and so remove all those "if (r)" in the error
path.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c