From 5498b872d9e28af6210b957c2336be65b1900522 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 9 Aug 2008 17:06:02 +0200 Subject: [PATCH] Add a comment to search_rbtree(). --- osl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osl.c b/osl.c index 9e6de44..c92412f 100644 --- a/osl.c +++ b/osl.c @@ -771,6 +771,10 @@ int get_mapped_object(const struct osl_table *t, unsigned col_num, return 1; } +/* + * It's OK to call this with result = rb_node = NULL. If result is not NULL, + * and rb key was not found, result points to the parent node. + */ static int search_rbtree(const struct osl_object *obj, const struct osl_table *t, unsigned col_num, struct rb_node **result, struct rb_node ***rb_link) -- 2.30.2