Skip to content

Commit

Permalink
drm/mst: Don't ignore the MST PBN self-test result
Browse files Browse the repository at this point in the history
Otherwise this call would have no effect.

Caught by Coverity.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Imre Deak authored and Dave Airlie committed Feb 5, 2016
1 parent dabe195 commit 441388a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/drm_dp_mst_topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 441388a

Please sign in to comment.