diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-05-08 03:33:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:17 -0400 |
commit | 788e770eb2d17212eafaeedde0be56e3444c6b9a (patch) | |
tree | 0833022390feec63302918b454a8ac97c9786e45 /kernel/rcutorture.c | |
parent | c3396620cace20639bdf380f893f4dccad090d91 (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>
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r-- | kernel/rcutorture.c | 2 |
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); |