Commit 19860f49 authored by Alex Hung's avatar Alex Hung Committed by Alex Deucher
Browse files

drm/amd/display: Remove redundant null check



[WHY & HOW]
The null check for connector was dereferenced previously in the same
function and the caller.

Reviewed-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Signed-off-by: default avatarRay Wu <ray.wu@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 48337bd1
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -6989,11 +6989,6 @@ create_stream_for_sink(struct drm_connector *connector,
	drm_mode_init(&mode, drm_mode);
	memset(&saved_mode, 0, sizeof(saved_mode));

	if (connector == NULL) {
		drm_err(dev, "connector is NULL!\n");
		return stream;
	}

	if (connector->connector_type != DRM_MODE_CONNECTOR_WRITEBACK) {
		aconnector = NULL;
		aconnector = to_amdgpu_dm_connector(connector);