]> git.tue.mpg.de Git - paraslash.git/commitdiff
[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 57f1398eeeb441662805b7b36b8c95adde986b78..5571b4338fd841343034892c3591080806691734 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;