diff --git a/msm/dp/dp_debug.c b/msm/dp/dp_debug.c index d758826abb..2add356ac0 100644 --- a/msm/dp/dp_debug.c +++ b/msm/dp/dp_debug.c @@ -662,13 +662,12 @@ static ssize_t dp_debug_write_mst_con_id(struct file *file, if (!dp_panel) goto out; - if (debug->dp_debug.sim_mode) { - dp_sim_update_port_status(debug->sim_bridge, - mst_port->port_num, status); - } else { + if (debug->dp_debug.sim_mode) + dp_sim_update_port_status(debug->sim_bridge, mst_port->port_num, status); + else dp_panel->mst_hide = (status == connector_status_disconnected); - drm_kms_helper_hotplug_event(connector->dev); - } + + drm_kms_helper_hotplug_event(connector->dev); out: drm_connector_put(connector);