Commit 2fa8e904 authored by Julia Lawall's avatar Julia Lawall Committed by Eric Anholt

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent e2ab3218
...@@ -168,7 +168,7 @@ static int vc4_get_clock_select(struct drm_crtc *crtc) ...@@ -168,7 +168,7 @@ static int vc4_get_clock_select(struct drm_crtc *crtc)
struct drm_connector *connector; struct drm_connector *connector;
drm_for_each_connector(connector, crtc->dev) { 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 drm_encoder *encoder = connector->encoder;
struct vc4_encoder *vc4_encoder = struct vc4_encoder *vc4_encoder =
to_vc4_encoder(encoder); to_vc4_encoder(encoder);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment