From: Zhong Li <zhong.li@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: benjamin.widawsky@intel.com, daniel.vetter@intel.com
Subject: [PATCH 8/8] gem_ring_sync_loop.c: fix an operator error
Date: Tue, 23 Apr 2013 15:06:48 +0800 [thread overview]
Message-ID: <1366700809-18143-9-git-send-email-zhong.li@intel.com> (raw)
In-Reply-To: <1366700809-18143-1-git-send-email-zhong.li@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
---
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
next prev parent reply other threads:[~2013-04-23 7:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-23 7:06 [PATCH 0/8] i-g-t: vebox test case Zhong Li
2013-04-23 7:06 ` [PATCH 1/8] gem_ring_sync_loop: check the rings supported by the kernel Zhong Li
2013-04-23 7:06 ` [PATCH 2/8] gem_ring_sync_loop: test the new ring Zhong Li
2013-04-23 7:06 ` [PATCH 3/8] tests: storedw on VEBOX Zhong Li
2013-04-25 1:57 ` Ben Widawsky
2013-04-23 7:06 ` [PATCH 4/8] gem_cs_tlb.c: add vebox test case Zhong Li
2013-04-27 18:40 ` Ben Widawsky
2013-04-27 18:41 ` Ben Widawsky
2013-04-23 7:06 ` [PATCH 5/8] gem_exec_nop.c: " Zhong Li
2013-04-27 18:45 ` Ben Widawsky
2013-04-28 6:07 ` Li, Zhong
2013-04-23 7:06 ` [PATCH 6/8] gem_non_secure_batch.c:add bsd and blt ring " Zhong Li
2013-04-23 7:06 ` [PATCH 7/8] gem_non_secure_batch.c add vebox " Zhong Li
2013-04-23 7:06 ` Zhong Li [this message]
2013-04-27 18:50 ` [PATCH 8/8] gem_ring_sync_loop.c: fix an operator error Ben Widawsky
2013-04-27 19:01 ` [PATCH 0/8] i-g-t: vebox test case Ben Widawsky
2013-04-28 12:02 ` Daniel Vetter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1366700809-18143-9-git-send-email-zhong.li@intel.com \
--to=zhong.li@intel.com \
--cc=benjamin.widawsky@intel.com \
--cc=daniel.vetter@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.