OSDN Git Service

drm/amd/display: Return a correct error value
authorMikita Lipski <mikita.lipski@amd.com>
Tue, 12 Nov 2019 18:58:32 +0000 (13:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 21:30:29 +0000 (16:30 -0500)
commit75441d9d35f71123933eafa4dd55459403582add
tree00b636c313c914b888ea730edef8d2ad3c07ae44
parent99218d122a2b329c179cc6917836068da3c3e1ad
drm/amd/display: Return a correct error value

[why]
The function is expected to return instance of the timing generator
therefore we shouldn't be returning boolean in integer function,
and we shouldn't be returning zero so changing it to -1.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c