Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);