[Intel-gfx] [PATCH 2/2] Remove useless assertion

przanoni at gmail.com przanoni at gmail.com
Fri Sep 16 23:56:00 CEST 2011


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

Removes 17 instances of:
warning: comparison of unsigned expression >= 0 is always true

Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
 src/xvmc/intel_batchbuffer.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/xvmc/intel_batchbuffer.h b/src/xvmc/intel_batchbuffer.h
index 888abeb..7fae6f7 100644
--- a/src/xvmc/intel_batchbuffer.h
+++ b/src/xvmc/intel_batchbuffer.h
@@ -44,7 +44,6 @@ extern int VERBOSE;
     do {                                                                 \
         xvmc_driver->batch.space -= (batch_ptr - xvmc_driver->batch.ptr);\
         xvmc_driver->batch.ptr = batch_ptr;                              \
-        assert(xvmc_driver->batch.space >= 0);                           \
     } while(0)
 
 extern void intelFlushBatch(Bool);
-- 
1.7.4.1




More information about the Intel-gfx mailing list