diff options
Diffstat (limited to 'include/litmus/binheap.h')
-rw-r--r-- | include/litmus/binheap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/litmus/binheap.h b/include/litmus/binheap.h index b8dd8e03da60..9fe5dc13d032 100644 --- a/include/litmus/binheap.h +++ b/include/litmus/binheap.h | |||
@@ -36,7 +36,7 @@ struct binheap_node { | |||
36 | * Signature of compator function. Assumed 'less-than' (min-heap). | 36 | * Signature of compator function. Assumed 'less-than' (min-heap). |
37 | * Pass in 'greater-than' for max-heap. | 37 | * Pass in 'greater-than' for max-heap. |
38 | * | 38 | * |
39 | * TODO: Consider macor-based implementation that allows comparator to be | 39 | * TODO: Consider macro-based implementation that allows comparator to be |
40 | * inlined (similar to Linux red/black tree) for greater efficiency. | 40 | * inlined (similar to Linux red/black tree) for greater efficiency. |
41 | */ | 41 | */ |
42 | typedef int (*binheap_order_t)(struct binheap_node *a, | 42 | typedef int (*binheap_order_t)(struct binheap_node *a, |
@@ -364,7 +364,7 @@ static inline void __binheap_add(struct binheap_node *new_node, | |||
364 | { | 364 | { |
365 | /* NULL data pointers are used internally */ | 365 | /* NULL data pointers are used internally */ |
366 | if(!data) { | 366 | if(!data) { |
367 | WARN(); | 367 | WARN_ON(!data); |
368 | return; | 368 | return; |
369 | } | 369 | } |
370 | 370 | ||