svn commit: r362562 - head/sys/compat/linuxkpi/common/include/linux

Doug Moore dougm at FreeBSD.org
Tue Jun 23 22:47:55 UTC 2020


Author: dougm
Date: Tue Jun 23 22:47:54 2020
New Revision: 362562
URL: https://svnweb.freebsd.org/changeset/base/362562

Log:
  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

Modified:
  head/sys/compat/linuxkpi/common/include/linux/rbtree.h

Modified: head/sys/compat/linuxkpi/common/include/linux/rbtree.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/rbtree.h	Tue Jun 23 21:44:00 2020	(r362561)
+++ head/sys/compat/linuxkpi/common/include/linux/rbtree.h	Tue Jun 23 22:47:54 2020	(r362562)
@@ -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))


More information about the svn-src-all mailing list