projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4177b51
)
drm/gma500: remove an unneeded NULL check
author
Dan Carpenter
<
[email protected]
>
Wed, 28 Jun 2017 12:41:01 +0000
(15:41 +0300)
committer
Daniel Vetter
<
[email protected]
>
Wed, 28 Jun 2017 17:17:38 +0000
(19:17 +0200)
"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 <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/20170628124100.3pw2gyitsfopaib5@mwanda
drivers/gpu/drm/gma500/mdfld_intel_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/gma500/mdfld_intel_display.c
b/drivers/gpu/drm/gma500/mdfld_intel_display.c
index 63c6e08600ae3a2351993dd5b6b824102a1e5420..531e4450c0009b7189490207182e033783113f3b 100644
(file)
--- a/
drivers/gpu/drm/gma500/mdfld_intel_display.c
+++ b/
drivers/gpu/drm/gma500/mdfld_intel_display.c
@@
-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;