summaryrefslogtreecommitdiff
path: root/lib/openbsd-tree.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-02-10 18:49:06 -0300
committerGitHub <noreply@github.com>2020-02-10 18:49:06 -0300
commit4b08a72ed109220fa2ae43956b1e51f299b02471 (patch)
treedebf6789280ad8a235573a39cb6f0c416d53575c /lib/openbsd-tree.c
parentc2c4b412fa116cddbb7c6734fd8c4c7281c566f2 (diff)
parent95f7965d09a6eb4447c0de5a679114492cac3f37 (diff)
Merge pull request #5763 from ton31337/fix/return_without_parent
*: Remove parenthesis on return for constants
Diffstat (limited to 'lib/openbsd-tree.c')
-rw-r--r--lib/openbsd-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/openbsd-tree.c b/lib/openbsd-tree.c
index ddcc59fa8f..98d2e155e3 100644
--- a/lib/openbsd-tree.c
+++ b/lib/openbsd-tree.c
@@ -431,7 +431,7 @@ void *_rb_insert(const struct rb_type *t, struct rbt_tree *rbt, void *elm)
rbe_insert_color(t, rbt, rbe);
- return (NULL);
+ return NULL;
}
/* Finds the node with the same key as elm */
@@ -453,7 +453,7 @@ void *_rb_find(const struct rb_type *t, const struct rbt_tree *rbt,
return (node);
}
- return (NULL);
+ return NULL;
}
/* Finds the first node greater than or equal to the search key */