mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
util/rb_tree: Replace useless ifs with asserts
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
a733423da5
commit
03911195a3
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ validate_tree_order(struct rb_tree *tree, unsigned expected_count)
|
|||
* show up in the list in order of insertion. We insert them
|
||||
* in the order they are in in the array.
|
||||
*/
|
||||
if (prev == NULL || prev < n);
|
||||
assert(prev == NULL || prev < n);
|
||||
}
|
||||
|
||||
prev = n;
|
||||
|
|
@ -105,7 +105,7 @@ validate_tree_order(struct rb_tree *tree, unsigned expected_count)
|
|||
* show up in the list in order of insertion. We insert them
|
||||
* in the order they are in in the array.
|
||||
*/
|
||||
if (prev == NULL || prev > n);
|
||||
assert(prev == NULL || prev > n);
|
||||
}
|
||||
|
||||
prev = n;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue