diff options
author | Dan Carpenter <error27@gmail.com> | 2011-07-08 10:45:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-08 22:45:00 +0200 |
commit | c3314080fede7b7ee84c2aa7001f72d46e884787 (patch) | |
tree | 30e26912a243e2dbe8a614b33200e2f1c6931354 | |
parent | gma500: reversed test in mdfld_dbi_dsr_exit() (diff) | |
download | linux-c3314080fede7b7ee84c2aa7001f72d46e884787.tar.xz linux-c3314080fede7b7ee84c2aa7001f72d46e884787.zip |
gma500: remove unneeded check in mdfld_crtc_mode_set()
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>
-rw-r--r-- | drivers/staging/gma500/mdfld_intel_display.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/gma500/mdfld_intel_display.c b/drivers/staging/gma500/mdfld_intel_display.c index 1447a5bc48bf..fa8499082813 100644 --- a/drivers/staging/gma500/mdfld_intel_display.c +++ b/drivers/staging/gma500/mdfld_intel_display.c @@ -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; |