diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-01-09 23:54:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:56 -0500 |
commit | fe971071a89c5c5184fc9f3482c7a8e997cf0520 (patch) | |
tree | 74a29e80d5636255f33c750482497a32d8d3491f /drivers/char/serial167.c | |
parent | 3c6bee1d4037a5c569f30d40bd852a57ba250912 (diff) |
[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/serial167.c')
-rw-r--r-- | drivers/char/serial167.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c index c2deac968bdd..a580748b92a1 100644 --- a/drivers/char/serial167.c +++ b/drivers/char/serial167.c | |||
@@ -117,7 +117,7 @@ struct cyclades_port cy_port[] = { | |||
117 | {-1 }, /* ttyS2 */ | 117 | {-1 }, /* ttyS2 */ |
118 | {-1 }, /* ttyS3 */ | 118 | {-1 }, /* ttyS3 */ |
119 | }; | 119 | }; |
120 | #define NR_PORTS (sizeof(cy_port)/sizeof(struct cyclades_port)) | 120 | #define NR_PORTS ARRAY_SIZE(cy_port) |
121 | 121 | ||
122 | /* | 122 | /* |
123 | * tmp_buf is used as a temporary buffer by serial_write. We need to | 123 | * tmp_buf is used as a temporary buffer by serial_write. We need to |