From b6fa628db0459c4a6b5946527570879a0c551898 Mon Sep 17 00:00:00 2001 From: Zhong Li Date: Tue, 23 Apr 2013 15:06:48 +0800 Subject: [PATCH] gem_ring_sync_loop.c: fix an operator error Signed-off-by: Zhong Li Signed-off-by: Ben Widawsky --- tests/gem_ring_sync_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gem_ring_sync_loop.c b/tests/gem_ring_sync_loop.c index 7bb8cef9..501e97ca 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;