diff mbox

[13/13] drm/i915: drop check for invalid pipe after fetching current hw state

Message ID 1364922237-3620-14-git-send-email-jbarnes@virtuousgeek.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jesse Barnes April 2, 2013, 5:03 p.m. UTC
Shouldn't be possible with return value fixes.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_display.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 208dde4..af0f5c4 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9374,9 +9374,7 @@  setup_pipes:
 
 	list_for_each_entry(encoder, &dev->mode_config.encoder_list,
 			    base.head) {
-		pipe = -1;
-
-		if (encoder->get_hw_state(encoder, &pipe) && pipe != -1) {
+		if (encoder->get_hw_state(encoder, &pipe)) {
 			crtc = to_intel_crtc(dev_priv->pipe_to_crtc_mapping[pipe]);
 			if (crtc->mode_valid && encoder->get_mode_flags)
 				crtc->base.mode.flags |= encoder->get_mode_flags(encoder);