Skip to content

Commit

Permalink
drm/gma500: remove an unneeded NULL check
Browse files Browse the repository at this point in the history
"connector" is the list iterator and it can't be NULL.  It causes a
static checker warning because we dereference the iterator to get the
next item in the list.  Let's remove this check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170628124100.3pw2gyitsfopaib5@mwanda
  • Loading branch information
Dan Carpenter authored and Daniel Vetter committed Jun 28, 2017
1 parent 4177b51 commit faa8b0b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/gpu/drm/gma500/mdfld_intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,7 @@ static int mdfld_crtc_mode_set(struct drm_crtc *crtc,
sizeof(struct drm_display_mode));

list_for_each_entry(connector, &mode_config->connector_list, head) {
if (!connector)
continue;

encoder = connector->encoder;

if (!encoder)
continue;

Expand Down

0 comments on commit faa8b0b

Please sign in to comment.