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)
commit4953b6b22ab9d7f64706631a027b1ed1130ce4c8
tree205310fe1695a3e30011f9396088da3516680fe1
parentf4b92fcd740d7c90eb7b011f22deab6192ffe44c
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