projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] uml: Use ARRAY_SIZE more assiduously
[powerpc.git]
/
arch
/
um
/
drivers
/
mconsole_kern.c
diff --git
a/arch/um/drivers/mconsole_kern.c
b/arch/um/drivers/mconsole_kern.c
index
b414522
..
79610b5
100644
(file)
--- a/
arch/um/drivers/mconsole_kern.c
+++ b/
arch/um/drivers/mconsole_kern.c
@@
-497,7
+497,7
@@
static void mconsole_get_config(int (*get_config)(char *, char *, int,
}
error = NULL;
- size =
sizeof(default_buf)/sizeof(default_buf[0]
);
+ size =
ARRAY_SIZE(default_buf
);
buf = default_buf;
while(1){