From patchwork Mon Jul 14 19:10:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Previte X-Patchwork-Id: 4548771 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0749C9F295 for ; Mon, 14 Jul 2014 19:11:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E16E20158 for ; Mon, 14 Jul 2014 19:11:41 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6EC372011E for ; Mon, 14 Jul 2014 19:11:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 154F66E471; Mon, 14 Jul 2014 12:11:40 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BCE56E46B for ; Mon, 14 Jul 2014 12:11:37 -0700 (PDT) Received: by mail-pa0-f43.google.com with SMTP id lf10so5475930pab.16 for ; Mon, 14 Jul 2014 12:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NYMl+F8ARsYPb6EJUyfHrXLdlo7h3zvazdgryIxEogs=; b=1ARvZZlDkkGm/MDO/c+0jmT4OdejNRNhp5LDMIp89vjMBJrFfNBjLLnRippATUIzWT HysZiTs9hIIY1L0TTCi5ChOWwzCLkPCvT73G70iDJJS4wr8smA0Q569BwAeV5slCjDBL kumTQXH3Mxr8DTEyXxpXQTeCEyf89jcAnn0Sda7Zn3r24pV3Z/CEO4z/SW8RBm1n6NWV y09A6Auhd3QNpIVPzt0fH6R932wXQ/4pebfcGuYB/AqZAQfyHtjWn4+afHWuI6CnpNiS n5xn4UyBuX2VcLzuWbUjtRTTYzWUnrCk1c2csg+z0QjiOnmKW2PEkivdpyIR4rnw0ket qUHw== X-Received: by 10.68.194.202 with SMTP id hy10mr18196126pbc.94.1405365097148; Mon, 14 Jul 2014 12:11:37 -0700 (PDT) Received: from localhost.localdomain (ip72-201-95-47.ph.ph.cox.net. [72.201.95.47]) by mx.google.com with ESMTPSA id z5sm8049888pbt.81.2014.07.14.12.11.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Jul 2014 12:11:36 -0700 (PDT) From: Todd Previte To: intel-gfx@lists.freedesktop.org Date: Mon, 14 Jul 2014 12:10:46 -0700 Message-Id: <1405365047-6866-12-git-send-email-tprevite@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405365047-6866-1-git-send-email-tprevite@gmail.com> References: <1405365047-6866-1-git-send-email-tprevite@gmail.com> Subject: [Intel-gfx] [PATCH 11/12] drm/i915: Minor code clean up in intel_dp.c X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cleans up a couple of unused variables and an extraneous debug log message that was unintentionally left behind. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/intel_dp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index e4b31ad..0e207aaf 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -3430,7 +3430,6 @@ intel_dp_autotest_link_training(struct intel_dp *intel_dp) uint8_t rxdata[2]; uint8_t link_status[DP_LINK_STATUS_SIZE]; int bytes_ret = 0; - struct drm_connector *connector = &intel_dp->attached_connector->base; struct intel_digital_port *intel_dig_port = enc_to_dig_port(&intel_dp->attached_connector->encoder->base); @@ -3494,7 +3493,7 @@ intel_dp_autotest_edid(struct intel_dp *intel_dp) struct edid *edid_read = NULL; uint8_t *edid_data = NULL; uint8_t test_result = DP_TEST_NAK, checksum = 0; - uint32_t i = 0, ret = 0; + uint32_t ret = 0; struct drm_display_mode *use_mode = NULL; int mode_count = 0; struct drm_mode_set modeset; @@ -3592,7 +3591,6 @@ intel_dp_handle_test_request(struct intel_dp *intel_dp) uint8_t rxdata = 0; int ret = 0; - DRM_DEBUG_KMS("Displayport: Received automated test request\n"); /* Read DP_TEST_REQUEST register to identify the requested test */ ret = drm_dp_dpcd_read(&intel_dp->aux, DP_TEST_REQUEST, &rxdata, 1);