diff options
author | Tobias Klauser | 2006-01-10 05:54:02 +0100 |
---|---|---|
committer | Linus Torvalds | 2006-01-10 17:01:56 +0100 |
commit | fe971071a89c5c5184fc9f3482c7a8e997cf0520 (patch) | |
tree | 74a29e80d5636255f33c750482497a32d8d3491f /drivers/char/cyclades.c | |
parent | [PATCH] turn "const static" into "static const" (diff) | |
download | kernel-qcow2-linux-fe971071a89c5c5184fc9f3482c7a8e997cf0520.tar.gz kernel-qcow2-linux-fe971071a89c5c5184fc9f3482c7a8e997cf0520.tar.xz kernel-qcow2-linux-fe971071a89c5c5184fc9f3482c7a8e997cf0520.zip |
[PATCH] drivers/char: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove
duplicates of ARRAY_SIZE.
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 'drivers/char/cyclades.c')
-rw-r--r-- | drivers/char/cyclades.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index c7f818cd7b02..c8e7daecad72 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c @@ -723,7 +723,7 @@ static unsigned int cy_isa_addresses[] = { 0xDE000, 0,0,0,0,0,0,0,0 }; -#define NR_ISA_ADDRS (sizeof(cy_isa_addresses)/sizeof(unsigned char*)) +#define NR_ISA_ADDRS ARRAY_SIZE(cy_isa_addresses) #ifdef MODULE static long maddr[NR_CARDS] = { 0, }; |