projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
atm: Use ARRAY_SIZE macro when appropriate
[deliverable/linux.git]
/
drivers
/
atm
/
he.c
diff --git
a/drivers/atm/he.c
b/drivers/atm/he.c
index db33f6f4dd2a5517302e22fc5575c43c1a28413e..8510026b690a587b175427b1508970e6492f3a5d 100644
(file)
--- a/
drivers/atm/he.c
+++ b/
drivers/atm/he.c
@@
-3017,7
+3017,7
@@
read_prom_byte(struct he_dev *he_dev, int addr)
he_writel(he_dev, val, HOST_CNTL);
/* Send READ instruction */
- for (i = 0; i <
sizeof(readtab)/sizeof(readtab[0]
); i++) {
+ for (i = 0; i <
ARRAY_SIZE(readtab
); i++) {
he_writel(he_dev, val | readtab[i], HOST_CNTL);
udelay(EEPROM_DELAY);
}
This page took
0.025606 seconds
and
5
git commands to generate.