drm/i915: remove redundant if check
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 21 Jul 2015 12:06:46 +0000 (17:36 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 21 Jul 2015 13:50:30 +0000 (15:50 +0200)
The extra check for connector_type is not required as we are already
checking for connector_type != DRM_MODE_CONNECTOR_DisplayPort.
The check was added by commit eb3394faeb97 ("drm/i915: Add debugfs test
control files for Displayport compliance testing")

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index ffce62e33dc9fc2aa0a23fefcf90fc871e7cda93..caf1382116de0abf65876dfa2d47d2daa4872dbb 100644 (file)
@@ -4059,9 +4059,7 @@ static ssize_t i915_displayport_test_active_write(struct file *file,
                    DRM_MODE_CONNECTOR_DisplayPort)
                        continue;
 
-               if (connector->connector_type ==
-                   DRM_MODE_CONNECTOR_DisplayPort &&
-                   connector->status == connector_status_connected &&
+               if (connector->status == connector_status_connected &&
                    connector->encoder != NULL) {
                        intel_dp = enc_to_intel_dp(connector->encoder);
                        status = kstrtoint(input_buffer, 10, &val);