]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amdgpu: correct the return value for error case
authorEvan Quan <evan.quan@amd.com>
Mon, 17 Dec 2018 09:51:22 +0000 (17:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Dec 2018 22:39:18 +0000 (17:39 -0500)
commit379c237e392e4cec09ff5853b5c0724a1e5d51b0
tree94ed5c6ab00e812c835f06ca115d06791875eff2
parente98bdb8061305ec00ca9c11231a606e849477bc8
drm/amdgpu: correct the return value for error case

It should not return 0 for error case as '0' is actually
a special value for index.

Signed-off-by: Evan Quan <evan.quan@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_psp.h
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c