summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCody P Schafer <cody@linux.vnet.ibm.com>2014-01-10 12:42:06 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2014-01-10 12:42:06 +1100
commit97b6cd479436e1466f982ec42fcb68edc4bc68bc (patch)
treefb9563e1bd2d81b59d26f6dd24e5b6c0fc53e690 /lib
parentb7f32be4bcab645a05173e0519379e685678baad (diff)
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>
Diffstat (limited to 'lib')
-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;