[Intel-gfx] [gpu-tools 7/7] getstats: remove useless assertion

przanoni at gmail.com przanoni at gmail.com
Thu Sep 15 20:18:40 CEST 2011


From: Paulo Zanoni <paulo.r.zanoni at intel.com>

getstats.c:48:2: warning: comparison of unsigned expression >= 0 is
always true

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 tests/getstats.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

This patch can be applied to both intel-gpu-tools and mesa/drm.
Whoever apply this to intel-gpu-tools, please apply to mesa/drm too.

diff --git a/tests/getstats.c b/tests/getstats.c
index 8d40d0b..8a7d299 100644
--- a/tests/getstats.c
+++ b/tests/getstats.c
@@ -45,8 +45,6 @@ int main(int argc, char **argv)
 	ret = ioctl(fd, DRM_IOCTL_GET_STATS, &stats);
 	assert(ret == 0);
 
-	assert(stats.count >= 0);
-
 	close(fd);
 	return 0;
 }
-- 
1.7.4.1




More information about the Intel-gfx mailing list