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

Commit 90a78e8f authored by Dan Carpenter's avatar Dan Carpenter Committed by Eric Anholt
Browse files

i915/intel_sdvo: remove unneeded null check



The "connector" variable is used as the cursor in a
list_for_each_entry() and it's always non-null so we don't need to check
it.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 467b200d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1479,7 +1479,7 @@ intel_find_analog_connector(struct drm_device *dev)
		intel_encoder = enc_to_intel_encoder(encoder);
		intel_encoder = enc_to_intel_encoder(encoder);
		if (intel_encoder->type == INTEL_OUTPUT_ANALOG) {
		if (intel_encoder->type == INTEL_OUTPUT_ANALOG) {
			list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
			list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
				if (connector && encoder == intel_attached_encoder(connector))
				if (encoder == intel_attached_encoder(connector))
					return connector;
					return connector;
			}
			}
		}
		}