]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Use correct error codes
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 20 Feb 2018 21:03:48 +0000 (16:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 20:08:41 +0000 (15:08 -0500)
commit9214315dd9c6549cd3886bb159c9ea2e3c9ba123
treefb76874ea1abd3fa42459d2ab924e6a9ca484511
parent120f6617a7914db631cb89061e5574fae06b2f1a
drm/amd/display: Use correct error codes

Should return -ENOMEM when allocation fails.
Also, just return the error code instead of using a variable.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c