[PATCH] drm: crtc-helper: Remove useless loop

Laurent Pinchart laurent.pinchart+renesas at ideasonboard.com
Wed May 28 05:43:36 PDT 2014


Commit e3d6ddb35f6221859b6054879d186e13a3af351e ("drm/crtc-helper: don't
disable disconnected outputs") made the for each loop over connectors
empty in __drm_helper_disable_unused_functions(). Remove the loop
altogether.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas at ideasonboard.com>
---
 drivers/gpu/drm/drm_crtc_helper.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index df281b5..fbc3aa7 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -145,11 +145,6 @@ static void __drm_helper_disable_unused_functions(struct drm_device *dev)
 
 	drm_warn_on_modeset_not_all_locked(dev);
 
-	list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
-		if (!connector->encoder)
-			continue;
-	}
-
 	list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
 		if (!drm_helper_encoder_in_use(encoder)) {
 			drm_encoder_disable(encoder);
-- 
Regards,

Laurent Pinchart



More information about the dri-devel mailing list