From: Damien Lespiau Subject: [PATCH i-g-t 14/43] kms_rotation_crc: Fix style issue: '{' at the end of lines Date: Thu, 10 Jul 2014 19:00:15 +0100 Message-ID: <1405015244-11370-15-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 84BA36E76D for ; Thu, 10 Jul 2014 11:01:26 -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 Signed-off-by: Damien Lespiau --- tests/kms_rotation_crc.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index db1ad57..9c194ce 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -183,12 +183,10 @@ static bool check_plane_type(int drm_fd, uint32_t plane_id, uint32_t type) props = drmModeObjectGetProperties(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE); - for (i = 0; i < props->count_props; i++) - { + for (i = 0; i < props->count_props; i++) { drmModePropertyPtr prop = drmModeGetProperty(drm_fd, props->props[i]); - if (strcmp(prop->name, "type") == 0) - { + if (strcmp(prop->name, "type") == 0) { if (props->prop_values[i] == type) { return true; } @@ -250,23 +248,19 @@ static int set_plane_property(data_t *data, int plane_id, const char *prop_name, value = (uint64_t)val; props = drmModeObjectGetProperties(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE); - for (i = 0; i < props->count_props; i++) - { + for (i = 0; i < props->count_props; i++) { drmModePropertyPtr prop = drmModeGetProperty(drm_fd, props->props[i]); igt_info("\nProp->name=%s: plane_id:%d\n ", prop->name, plane_id); - if (strcmp(prop->name, prop_name) == 0) - { + if (strcmp(prop->name, prop_name) == 0) { ret = drmModeObjectSetProperty(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE, (uint32_t)prop->prop_id, value); - if (ret) - { + if (ret) { igt_info("set_property \"%s\" to %d for plane %d is failed, err:%d\n", prop_name, val, plane_id, ret); drmModeFreeProperty(prop); drmModeFreeObjectProperties(props); return ret; - } - else { + } else { /* Collect crc after rotation */ igt_pipe_crc_collect_crc(data->pipe_crc, crc_output); drmModeFreeProperty(prop); -- 1.8.3.1