Skip to contentSkip to conversation

Staging: gma500: remove unneeded check in

PATCH In review Dan Carpenter 2 participants 2 messages Jul 8, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: gma500: remove unneeded check in

The list cursor is never NULL in a list_for_each_entry() loop.

drivers/staging/gma500/mdfld_intel_display.c +0 -2
index 1447a5b..fa84990 100644
@@ -1093,8 +1093,6 @@ static int mdfld_crtc_mode_set(struct drm_crtc *crtc,
 	memcpy(&psb_intel_crtc->saved_adjusted_mode, adjusted_mode, sizeof(struct drm_display_mode));
 
 	list_for_each_entry(connector, &mode_config->connector_list, head) {
-		if(!connector)
-			continue;
 			
 		encoder = connector->encoder;
 		
#1 lore raw
Quoted 9 lines · On Fri, 8 Jul 2011 10:23:55 +0300 Dan Carpenter <[email protected]> wrote:

The list cursor is never NULL in a list_for_each_entry() loop.

(quoted diff) +0 -0

b/drivers/staging/gma500/mdfld_intel_display.c index 1447a5b..fa84990 100644 --- a/drivers/staging/gma500/mdfld_intel_display.c +++ b/drivers/staging/gma500/mdfld_intel_display.c

drivers/staging/gma500/mdfld_intel_display.c static int mdfld_crtc_mode_set(struct drm_crtc · line 1098

Quoted 8 lines
drivers/staging/gma500/mdfld_intel_display.c +0 -2
@@ -1093,8 +1093,6 @@ static int mdfld_crtc_mode_set(struct drm_crtc
 *crtc, memcpy(&psb_intel_crtc->saved_adjusted_mode, adjusted_mode,
 sizeof(struct drm_display_mode)); 
 	list_for_each_entry(connector, &mode_config->connector_list,
 head) {
-		if(!connector)
-			continue;
 
 		encoder = connector->encoder;

All three added to the my next patch stack