From 158c55a584644aaf101c73f3f1f1eed230358d58 Mon Sep 17 00:00:00 2001 From: Doug Moore Date: Tue, 23 Jun 2020 22:47:54 +0000 Subject: [PATCH] In r362552, RB_SET_PARENT is defined, and use in parens in RB_CLEAR_NODE. But it is not an expression, and ought not to be enclosed in parens. Remove them. Approved by: markj Differential Revision: https://reviews.freebsd.org/D25421 --- sys/compat/linuxkpi/common/include/linux/rbtree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/rbtree.h b/sys/compat/linuxkpi/common/include/linux/rbtree.h index 2f3c0fdf9ff3..1a49b5d5cdd9 100644 --- a/sys/compat/linuxkpi/common/include/linux/rbtree.h +++ b/sys/compat/linuxkpi/common/include/linux/rbtree.h @@ -60,7 +60,7 @@ RB_PROTOTYPE(linux_root, rb_node, __entry, panic_cmp); #define RB_EMPTY_ROOT(root) RB_EMPTY((struct linux_root *)root) #define RB_EMPTY_NODE(node) (RB_PARENT(node, __entry) == node) -#define RB_CLEAR_NODE(node) (RB_SET_PARENT(node, node, __entry)) +#define RB_CLEAR_NODE(node) RB_SET_PARENT(node, node, __entry) #define rb_insert_color(node, root) \ linux_root_RB_INSERT_COLOR((struct linux_root *)(root), (node))