drm/amdpgu/debugfs: Simplify some exit paths
authorAndré Almeida <andrealmeid@igalia.com>
Mon, 4 Jul 2022 13:45:32 +0000 (10:45 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jul 2022 20:18:14 +0000 (16:18 -0400)
commitedadd6fc28b24dd5806dafc4b38633494ff423e6
tree3a221f13ef2fdaee7c1b282ff5ed2bca9aa5bc91
parentc3c483391bb23e9bb8d8a51e54fefcf508b1cce3
drm/amdpgu/debugfs: Simplify some exit paths

To avoid code repetition, unify the function exit path when possible. No
functional changes.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c