mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
drm/gma500: remove an unneeded NULL check
"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
This commit is contained in:
parent
4177b51e19
commit
faa8b0b753
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue