Skip to contentSkip to conversation

getstats: remove useless assertion

PATCH New [email protected] 1 participant 1 message Sep 15, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 getstats: remove useless assertion

From: Paulo Zanoni <[email protected]>

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

---
 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.

tests/getstats.c +0 -2
index 8d40d0b..8a7d299 100644
@@ -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;
 }
Signature · 1 line
1.7.4.1