From patchwork Fri May 7 08:40:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 97665 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o479OYqq012929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 7 May 2010 09:25:42 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OAJls-0005pq-8n; Fri, 07 May 2010 09:23:00 +0000 Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OAJ6d-00014z-NU for dri-devel@lists.sourceforge.net; Fri, 07 May 2010 08:40:23 +0000 Received-SPF: pass (sfi-mx-1.v28.ch3.sourceforge.com: domain of gmail.com designates 74.125.82.175 as permitted sender) client-ip=74.125.82.175; envelope-from=error27@gmail.com; helo=mail-wy0-f175.google.com; Received: from mail-wy0-f175.google.com ([74.125.82.175]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1OAJ6b-0004LS-H4 for dri-devel@lists.sourceforge.net; Fri, 07 May 2010 08:40:23 +0000 Received: by wyf22 with SMTP id 22so533677wyf.34 for ; Fri, 07 May 2010 01:40:15 -0700 (PDT) Received: by 10.227.128.81 with SMTP id j17mr5658997wbs.149.1273221614866; Fri, 07 May 2010 01:40:14 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id r29sm14039693wbv.15.2010.05.07.01.40.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 May 2010 01:40:14 -0700 (PDT) Date: Fri, 7 May 2010 10:40:09 +0200 From: Dan Carpenter To: David Airlie Subject: [patch -next] i915/intel_sdvo: remove unneeded null check Message-ID: <20100507084009.GZ27064@bicker> Mail-Followup-To: Dan Carpenter , David Airlie , Eric Anholt , Zhao Yakui , Ma Ling , Zhenyu Wang , Keith Packard , dri-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server [205.177.176.130 listed in dnsbl.sorbs.net] 1.5 RCVD_IN_PSBL RBL: Received via a relay in PSBL [205.177.176.130 listed in psbl.surriel.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.0 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 1.5 SF_NO_SPF_SPAM SF_NO_SPF_SPAM 0.4 AWL AWL: From: address is in the auto white-list X-Headers-End: 1OAJ6b-0004LS-H4 X-Mailman-Approved-At: Fri, 07 May 2010 09:22:59 +0000 Cc: Keith Packard , Ma Ling , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.sourceforge.net X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 07 May 2010 09:25:42 +0000 (UTC) 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; } }