aboutsummaryrefslogtreecommitdiff
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorSiqi Lin <siqilin@google.com>2017-06-06 12:00:43 -0700
committerSiqi Lin <siqilin@google.com>2017-06-06 12:02:16 -0700
commit7e17d347211eb0403ad53b2b04494c6457d7ddf3 (patch)
tree38c6a7a5a0556c73ffb349765941e0ca7869831c /lib/timerqueue.c
parent69af46bde2a4021b9d1277854c7932cb6ba1b003 (diff)
Revert "rbtree: Detect left/right pointer assignments that would cause loops"
This reverts commit 814a3a1df3e6 ("rbtree: Detect left/right pointer assignments that would cause loops"). Bug: 38121882 Change-Id: I012c37328b92791bd0b1e618c8de1ff19f8f987a Signed-off-by: Siqi Lin <siqilin@google.com>
Diffstat (limited to 'lib/timerqueue.c')
-rw-r--r--lib/timerqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/timerqueue.c b/lib/timerqueue.c
index c6679a9338c..a382e4a3260 100644
--- a/lib/timerqueue.c
+++ b/lib/timerqueue.c
@@ -43,7 +43,7 @@ void timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node)
struct timerqueue_node *ptr;
/* Make sure we don't add nodes that are already added */
- BUG_ON(!RB_EMPTY_NODE(&node->node));
+ WARN_ON_ONCE(!RB_EMPTY_NODE(&node->node));
while (*p) {
parent = *p;
@@ -71,7 +71,7 @@ EXPORT_SYMBOL_GPL(timerqueue_add);
*/
void timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node)
{
- BUG_ON(RB_EMPTY_NODE(&node->node));
+ WARN_ON_ONCE(RB_EMPTY_NODE(&node->node));
/* update next pointer */
if (head->next == node) {