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

Commit bc3213c4 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Drop the eDP check from intel_dp_connector_destroy()



As long as the connector was zeroed during allocation calling
intel_panel_fini() is safe even if we haven't initialized
the panel struct explicitly. So let's drop the useless eDP
check from dp connector destruction.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181008134641.24868-2-ville.syrjala@linux.intel.com


Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 19dfe572
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -5261,11 +5261,6 @@ intel_dp_connector_destroy(struct drm_connector *connector)
	if (!IS_ERR_OR_NULL(intel_connector->edid))
		kfree(intel_connector->edid);

	/*
	 * Can't call intel_dp_is_edp() since the encoder may have been
	 * destroyed already.
	 */
	if (connector->connector_type == DRM_MODE_CONNECTOR_eDP)
	intel_panel_fini(&intel_connector->panel);

	drm_connector_cleanup(connector);