i915g: Remove useless comparison
authorStéphane Marchesin <marcheu@chromium.org>
Fri, 6 Sep 2013 17:52:44 +0000 (10:52 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Fri, 6 Sep 2013 18:05:24 +0000 (11:05 -0700)
Fixes "Macro compares unsigned to 0" defect reported by Coverity.

src/gallium/drivers/i915/i915_debug.c

index b6c442dff725cc7a1360790c9a74d0bcda9fbba8..b072031963705921ddb5664fa9b66a5ae2144e6e 100644 (file)
@@ -913,7 +913,7 @@ i915_dump_batchbuffer( struct i915_winsys_batchbuffer *batch )
       debug_printf( "\n\nBATCH: ???\n");
       return;
    }
-   
+
    debug_printf( "\n\nBATCH: (%d)\n", (int)bytes / 4);
 
    while (!done &&
@@ -922,8 +922,7 @@ i915_dump_batchbuffer( struct i915_winsys_batchbuffer *batch )
       if (!i915_debug_packet( &stream ))
         break;
 
-      assert(stream.offset <= bytes &&
-            stream.offset >= 0);
+      assert(stream.offset <= bytes);
    }
 
    debug_printf( "END-BATCH\n\n\n");