gem_ring_sync_loop.c: fix an operator error

Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
Zhong Li 2013-04-23 15:06:48 +08:00 committed by Ben Widawsky
parent 8be812b86c
commit b6fa628db0

View File

@ -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;