Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 441388a8 authored by Imre Deak's avatar Imre Deak Committed by Dave Airlie
Browse files

drm/mst: Don't ignore the MST PBN self-test result



Otherwise this call would have no effect.

Caught by Coverity.

Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarDavid Weinehall <david.weinehall@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent dabe1954
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2855,7 +2855,9 @@ int drm_dp_mst_topology_mgr_init(struct drm_dp_mst_topology_mgr *mgr,
	if (!mgr->proposed_vcpis)
		return -ENOMEM;
	set_bit(0, &mgr->payload_mask);
	test_calc_pbn_mode();
	if (test_calc_pbn_mode() < 0)
		DRM_ERROR("MST PBN self-test failed\n");

	return 0;
}
EXPORT_SYMBOL(drm_dp_mst_topology_mgr_init);