getstats: remove useless assertion
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
Signed-off-by Paulo Zanoni <[email protected]>
--- 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
@@ -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