[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100507084009.GZ27064@bicker>
Date: Fri, 7 May 2010 10:40:09 +0200
From: Dan Carpenter <error27@...il.com>
To: David Airlie <airlied@...ux.ie>
Cc: Eric Anholt <eric@...olt.net>, Zhao Yakui <yakui.zhao@...el.com>,
Ma Ling <ling.ma@...el.com>,
Zhenyu Wang <zhenyuw@...ux.intel.com>,
Keith Packard <keithp@...thp.com>,
dri-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [patch -next] 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: Dan Carpenter <error27@...il.com>
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index 42ceb15..179d146 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -1479,7 +1479,7 @@ intel_find_analog_connector(struct drm_device *dev)
intel_encoder = enc_to_intel_encoder(encoder);
if (intel_encoder->type == INTEL_OUTPUT_ANALOG) {
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;
}
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists