From: Zhong Li Subject: [PATCH 8/8] gem_ring_sync_loop.c: fix an operator error Date: Tue, 23 Apr 2013 15:06:48 +0800 Message-ID: <1366700809-18143-9-git-send-email-zhong.li@intel.com> References: <1366700809-18143-1-git-send-email-zhong.li@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 D0160E5FEB for ; Tue, 23 Apr 2013 00:29:32 -0700 (PDT) In-Reply-To: <1366700809-18143-1-git-send-email-zhong.li@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org Cc: benjamin.widawsky@intel.com, daniel.vetter@intel.com List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Zhong Li --- tests/gem_ring_sync_loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gem_ring_sync_loop.c b/tests/gem_ring_sync_loop.c index 955bf34..cb79e7c 100644 --- a/tests/gem_ring_sync_loop.c +++ b/tests/gem_ring_sync_loop.c @@ -68,7 +68,7 @@ get_num_rings(int fd) gp.param = I915_PARAM_HAS_BSD; ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp); - if ((ret == 0) & (*gp.value > 0)) + if ((ret == 0) && (*gp.value > 0)) num_rings++; else goto skip; @@ -76,7 +76,7 @@ get_num_rings(int fd) gp.param = I915_PARAM_HAS_BLT; ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp); - if ((ret == 0) & (*gp.value > 0)) + if ((ret == 0) && (*gp.value > 0)) num_rings++; else goto skip; @@ -86,7 +86,7 @@ get_num_rings(int fd) gp.param = I915_PARAM_HAS_VEBOX; ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp); - if ((ret == 0) & (*gp.value > 0)) + if ((ret == 0) && (*gp.value > 0)) num_rings++; else goto skip; -- 1.7.9.5