diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-10-23 07:38:00 +0200 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-11-17 12:26:45 -0800 |
commit | 2fa8e90433cdc2d9f09883f45fd2942dc042d6a6 (patch) | |
tree | f8502a47d171398a6b9fcd8c846a9b7cec6979d6 /drivers/gpu | |
parent | e2ab3218f46bce3380189ba4ac2a8cbdb2ae6272 (diff) | |
download | linux-2fa8e90433cdc2d9f09883f45fd2942dc042d6a6.tar.gz linux-2fa8e90433cdc2d9f09883f45fd2942dc042d6a6.tar.bz2 linux-2fa8e90433cdc2d9f09883f45fd2942dc042d6a6.zip |
drm/vc4: fix itnull.cocci warnings
Connector cannot be null because it is a list entry, ie accessed at an
offset from the positions of the list structure pointers themselves.
Generated by: scripts/coccinelle/iterators/itnull.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 7a9f4768591e..f794c5b6996b 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -168,7 +168,7 @@ static int vc4_get_clock_select(struct drm_crtc *crtc) struct drm_connector *connector; drm_for_each_connector(connector, crtc->dev) { - if (connector && connector->state->crtc == crtc) { + if (connector->state->crtc == crtc) { struct drm_encoder *encoder = connector->encoder; struct vc4_encoder *vc4_encoder = to_vc4_encoder(encoder); |