Skip to content

Commit

Permalink
gma500: remove unneeded check in mdfld_crtc_mode_set()
Browse files Browse the repository at this point in the history
The list cursor is never NULL in a list_for_each_entry() loop.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Jul 8, 2011
1 parent d75758b commit c331408
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/gma500/mdfld_intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c331408

Please sign in to comment.