From: Damien Lespiau Subject: [PATCH i-g-t 30/43] kms_rotation_crc: Remove the test on output->valid Date: Thu, 10 Jul 2014 19:00:31 +0100 Message-ID: <1405015244-11370-31-git-send-email-damien.lespiau@intel.com> References: <1405015244-11370-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 73F5E6E774 for ; Thu, 10 Jul 2014 11:01:41 -0700 (PDT) In-Reply-To: <1405015244-11370-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This test is already done by the for_each_connected_output() macro. Signed-off-by: Damien Lespiau --- tests/kms_rotation_crc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index ae0ca21..a68aece 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -83,15 +83,11 @@ static bool prepare_crtc(data_t *data, enum pipe pipe) { drmModeModeInfo *mode; igt_display_t *display = &data->display; - igt_output_t *output = data->output; int fb_id; igt_output_set_pipe(output, pipe); igt_display_commit(display); - if (!data->output->valid) - return false; - /* create the pipe_crc object for this pipe */ if (data->pipe_crc) igt_pipe_crc_free(data->pipe_crc); -- 1.8.3.1