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

Commit 3ea0bf37 authored by Himanshu Jha's avatar Himanshu Jha Committed by Daniel Vetter
Browse files

drm/gma500: Remove null check before kfree

parent b07b9146
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1901,11 +1901,9 @@ cdv_intel_dp_destroy(struct drm_connector *connector)

	if (is_edp(gma_encoder)) {
	/*	cdv_intel_panel_destroy_backlight(connector->dev); */
		if (intel_dp->panel_fixed_mode) {
		kfree(intel_dp->panel_fixed_mode);
		intel_dp->panel_fixed_mode = NULL;
	}
	}
	i2c_del_adapter(&intel_dp->adapter);
	drm_connector_unregister(connector);
	drm_connector_cleanup(connector);