Skip to content

Commit

Permalink
Merge tag 'drm-intel-next-fixes-2015-06-22' of git://anongit.freedesk…
Browse files Browse the repository at this point in the history
…top.org/drm-intel into drm-next

fix warning introduced in last -fixes
* tag 'drm-intel-next-fixes-2015-06-22' of git://anongit.freedesktop.org/drm-intel:
  drm/i915: Silence compiler warning
  • Loading branch information
Dave Airlie committed Jun 23, 2015
2 parents 8ffaa90 + 9044a81 commit ce8e394
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -11867,15 +11867,15 @@ intel_modeset_update_state(struct drm_atomic_state *state)
if (!intel_encoder->base.crtc)
continue;

for_each_crtc_in_state(state, crtc, crtc_state, i)
if (crtc == intel_encoder->base.crtc)
break;
for_each_crtc_in_state(state, crtc, crtc_state, i) {
if (crtc != intel_encoder->base.crtc)
continue;

if (crtc != intel_encoder->base.crtc)
continue;
if (crtc_state->enable && needs_modeset(crtc_state))
intel_encoder->connectors_active = false;

if (crtc_state->enable && needs_modeset(crtc_state))
intel_encoder->connectors_active = false;
break;
}
}

drm_atomic_helper_swap_state(state->dev, state);
Expand All @@ -11890,24 +11890,24 @@ intel_modeset_update_state(struct drm_atomic_state *state)
if (!connector->encoder || !connector->encoder->crtc)
continue;

for_each_crtc_in_state(state, crtc, crtc_state, i)
if (crtc == connector->encoder->crtc)
break;
for_each_crtc_in_state(state, crtc, crtc_state, i) {
if (crtc != connector->encoder->crtc)
continue;

if (crtc != connector->encoder->crtc)
continue;
if (crtc->state->enable && needs_modeset(crtc->state)) {
struct drm_property *dpms_property =
dev->mode_config.dpms_property;

if (crtc->state->enable && needs_modeset(crtc->state)) {
struct drm_property *dpms_property =
dev->mode_config.dpms_property;
connector->dpms = DRM_MODE_DPMS_ON;
drm_object_property_set_value(&connector->base,
dpms_property,
DRM_MODE_DPMS_ON);

connector->dpms = DRM_MODE_DPMS_ON;
drm_object_property_set_value(&connector->base,
dpms_property,
DRM_MODE_DPMS_ON);
intel_encoder = to_intel_encoder(connector->encoder);
intel_encoder->connectors_active = true;
}

intel_encoder = to_intel_encoder(connector->encoder);
intel_encoder->connectors_active = true;
break;
}
}

Expand Down

0 comments on commit ce8e394

Please sign in to comment.