]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbtree/test: move rb_node to the middle of the test struct
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 3 Jan 2014 03:10:33 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:33 +0000 (14:10 +1100)
commit156d20a42a66d106725ee3f2a861ca91c53bd5c9
tree21ddfab9e8a90508d6901b3d9c97ba2e3ee97a4b
parente6a944c6919b5bb91e857e62523cd030f73b45dd
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>
lib/rbtree_test.c