[btr] btr_node_status(): Node pointer should never be NULL.
authorAndre Noll <maan@systemlinux.org>
Thu, 14 Jan 2010 22:57:22 +0000 (23:57 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 14 Jan 2010 22:57:22 +0000 (23:57 +0100)
buffer_tree.c

index 57f1398..5571b43 100644 (file)
@@ -790,8 +790,7 @@ int btr_node_status(struct btr_node *btrn, size_t min_iqs,
 {
        size_t iqs;
 
-       if (!btrn)
-               return 0;
+       assert(btrn);
        if (type != BTR_NT_LEAF) {
                if (btr_no_children(btrn))
                        return -E_BTR_NO_CHILD;