{
struct dc_link *edp_links[MAX_NUM_EDP];
struct dc_link *edp_link = NULL;
+ enum dc_connection_type type;
int i;
int edp_num;
- bool edp_sink_present = true;
get_edp_links(dc, edp_links, &edp_num);
if (!edp_num)
return;
- if (dc->config.edp_not_connected) {
- edp_sink_present = false;
- } else {
- enum dc_connection_type type;
- for (i = 0; i < edp_num; i++) {
- edp_link = edp_links[i];
+ for (i = 0; i < edp_num; i++) {
+ edp_link = edp_links[i];
+ if (dc->config.edp_not_connected) {
+ edp_link->edp_sink_present = false;
+ } else {
dc_link_detect_sink(edp_link, &type);
edp_link->edp_sink_present = (type != dc_connection_none);
}