summaryrefslogtreecommitdiffstats
path: root/lib/rbtree_test.c
diff options
context:
space:
mode:
authorCody P Schafer <cody@linux.vnet.ibm.com>2014-01-24 00:56:05 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-24 01:37:03 +0100
commitdbf128cbf9b90f97d74c734d1a768c564958e970 (patch)
tree9d680d15fc67586233dc78aca776cd7a2e4ac7fe /lib/rbtree_test.c
parentrapidio: add modular rapidio core build into powerpc and mips branches (diff)
downloadlinux-dbf128cbf9b90f97d74c734d1a768c564958e970.tar.xz
linux-dbf128cbf9b90f97d74c734d1a768c564958e970.zip
rbtree/test: move rb_node to the middle of the test struct
Avoid making the rb_node the first entry to catch some bugs around NULL checking the rb_node. Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com> Cc: Michel Lespinasse <walken@google.com> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/rbtree_test.c')
-rw-r--r--lib/rbtree_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c
index 31dd4ccd3baa..df6c125ff5c2 100644
--- a/lib/rbtree_test.c
+++ b/lib/rbtree_test.c
@@ -8,8 +8,8 @@
#define CHECK_LOOPS 100
struct test_node {
- struct rb_node rb;
u32 key;
+ struct rb_node rb;
/* following fields used for testing augmented rbtree functionality */
u32 val;