aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwish.07@gmail.com>2007-05-08 03:33:14 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:17 -0400
commit788e770eb2d17212eafaeedde0be56e3444c6b9a (patch)
tree0833022390feec63302918b454a8ac97c9786e45
parentc3396620cace20639bdf380f893f4dccad090d91 (diff)
rcutorture: Use ARRAY_SIZE macro when appropriate
Use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Cc: "Paul E. McKenney" <paulmck@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--kernel/rcutorture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index 75ca2a740471..7d20d764b847 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -899,7 +899,7 @@ rcu_torture_init(void)
899 /* Set up the freelist. */ 899 /* Set up the freelist. */
900 900
901 INIT_LIST_HEAD(&rcu_torture_freelist); 901 INIT_LIST_HEAD(&rcu_torture_freelist);
902 for (i = 0; i < sizeof(rcu_tortures) / sizeof(rcu_tortures[0]); i++) { 902 for (i = 0; i < ARRAY_SIZE(rcu_tortures); i++) {
903 rcu_tortures[i].rtort_mbtest = 0; 903 rcu_tortures[i].rtort_mbtest = 0;
904 list_add_tail(&rcu_tortures[i].rtort_free, 904 list_add_tail(&rcu_tortures[i].rtort_free,
905 &rcu_torture_freelist); 905 &rcu_torture_freelist);