aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/reboot_fixups.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2005-11-07 00:58:31 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 07:53:28 -0800
commit38e548ee1a79c8da7b3d9e26f2adce9b61413f84 (patch)
tree1811dc06acbba9d9bccebe6ad3fc495e96862e60 /arch/i386/kernel/reboot_fixups.c
parent[PATCH] sh: Use pfn_valid() for lazy dcache write-back on SH7705 (diff)
downloadlinux-dev-38e548ee1a79c8da7b3d9e26f2adce9b61413f84.tar.xz
linux-dev-38e548ee1a79c8da7b3d9e26f2adce9b61413f84.zip
[PATCH] arch/i386: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/reboot_fixups.c')
-rw-r--r--arch/i386/kernel/reboot_fixups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/reboot_fixups.c b/arch/i386/kernel/reboot_fixups.c
index c9b87330aeea..6f73c9ea4e3d 100644
--- a/arch/i386/kernel/reboot_fixups.c
+++ b/arch/i386/kernel/reboot_fixups.c
@@ -42,7 +42,7 @@ void mach_reboot_fixups(void)
struct pci_dev *dev;
int i;
- for (i=0; i < (sizeof(fixups_table)/sizeof(fixups_table[0])); i++) {
+ for (i=0; i < ARRAY_SIZE(fixups_table); i++) {
cur = &(fixups_table[i]);
dev = pci_get_device(cur->vendor, cur->device, NULL);
if (!dev)