From: Damien Lespiau Subject: [PATCH i-g-t 24/43] kms_rotation_crc: Always disable the plane in cleanup Date: Thu, 10 Jul 2014 19:00:25 +0100 Message-ID: <1405015244-11370-25-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 1E86C6E775 for ; Thu, 10 Jul 2014 11:01:37 -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 There's no need for this check, always use set_fb(NULL) on the plane. Signed-off-by: Damien Lespiau --- tests/kms_rotation_crc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 0edc6c3..30eb227 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -185,11 +185,9 @@ static void cleanup_crtc(data_t *data, igt_output_t *output) data->pipe_crc = NULL; igt_remove_fb(data->gfx_fd, &data->fb); - - if (data->plane != NULL) - igt_plane_set_fb(data->plane, NULL); - + igt_plane_set_fb(data->plane, NULL); igt_output_set_pipe(output, PIPE_ANY); + igt_display_commit(display); } -- 1.8.3.1