mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
i915g: Remove useless comparison
Fixes "Macro compares unsigned to 0" defect reported by Coverity.
This commit is contained in:
parent
7125af2957
commit
9e14895884
1 changed files with 2 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue