From: Cody P Schafer Date: Fri, 3 Jan 2014 03:10:33 +0000 (+1100) Subject: rbtree/test: move rb_node to the middle of the test struct X-Git-Tag: next-20140106~2^2~20 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=156d20a42a66d106725ee3f2a861ca91c53bd5c9;p=karo-tx-linux.git 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 Cc: Michel Lespinasse Cc: Jan Kara Signed-off-by: Andrew Morton --- 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;