[CRIU] [PATCH 04/28] dump: remove unused RB_ROOT macro

Kinsbursky Stanislav skinsbursky at openvz.org
Thu Mar 22 13:57:57 EDT 2012


From: Stanislav Kinsbursky <skinsbursky at openvz.org>

Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
 file-ids.c       |    2 +-
 include/rbtree.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
-------------- next part --------------
diff --git a/file-ids.c b/file-ids.c
index aae3464..9d2608f 100644
--- a/file-ids.c
+++ b/file-ids.c
@@ -58,7 +58,7 @@
  * in one pass.
  */
 
-struct rb_root fd_id_root = RB_ROOT;
+struct rb_root fd_id_root;
 static unsigned long fd_id_entries_subid = 1;
 
 static struct fd_id_entry *alloc_fd_id_entry(u32 genid, pid_t pid, int fd)
diff --git a/include/rbtree.h b/include/rbtree.h
index 2da5877..7484837 100644
--- a/include/rbtree.h
+++ b/include/rbtree.h
@@ -41,7 +41,6 @@ static void rb_set_color(struct rb_node *rb, int color)
 	rb->rb_parent_color = (rb->rb_parent_color & ~RB_BLACK) | color;
 }
 
-#define RB_ROOT				(struct rb_root){ NULL, }
 #define	rb_entry(ptr, type, member)	container_of(ptr, type, member)
 
 #define RB_EMPTY_ROOT(root)		((root)->rb_node == NULL)


More information about the CRIU mailing list