projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] drivers/char: Use ARRAY_SIZE macro
[deliverable/linux.git]
/
drivers
/
char
/
serial167.c
diff --git
a/drivers/char/serial167.c
b/drivers/char/serial167.c
index c2deac968bdd7c607864a99b72651911d4746e78..a580748b92a1083ab43527fedb1ee5dea9cdad7e 100644
(file)
--- a/
drivers/char/serial167.c
+++ b/
drivers/char/serial167.c
@@
-117,7
+117,7
@@
struct cyclades_port cy_port[] = {
{-1 }, /* ttyS2 */
{-1 }, /* ttyS3 */
};
-#define NR_PORTS
(sizeof(cy_port)/sizeof(struct cyclades_port)
)
+#define NR_PORTS
ARRAY_SIZE(cy_port
)
/*
* tmp_buf is used as a temporary buffer by serial_write. We need to
This page took
0.029551 seconds
and
5
git commands to generate.