drm/amd/display: fix is odm head pipe logic
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Tue, 26 Mar 2019 17:26:37 +0000 (13:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:28 +0000 (13:53 -0500)
commitfe6382cd69de98802455e77040c6e00d9e12cc47
treeac47ec82a5faaf5cfcf6d4fa3b604bc59a2c9583
parentcc1fec5724d16295979c8bb7cf27ac2f4696b19c
drm/amd/display: fix is odm head pipe logic

Simply return true/false, don't iterate up the tree.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Nikola Cornij <Nikola.Cornij@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