diff options
author | Jason Ekstrand <[email protected]> | 2019-09-23 12:24:12 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-09-23 22:38:30 +0000 |
commit | 03911195a32e9c00b07de2c5cdc6a4a70ae2284b (patch) | |
tree | 18fbbd7cbf35f3f1927db5aab5789b7ce313bfe2 /src/util/rb_tree_test.c | |
parent | a733423da5d0800830189a1d338370bbb2de7642 (diff) |
util/rb_tree: Replace useless ifs with asserts
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/util/rb_tree_test.c')
-rw-r--r-- | src/util/rb_tree_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/rb_tree_test.c b/src/util/rb_tree_test.c index a5952b3b52d..20a236d2eec 100644 --- a/src/util/rb_tree_test.c +++ b/src/util/rb_tree_test.c @@ -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; |