diff options
author | Alejandro Martinez Ruiz <alex@flawedcode.org> | 2007-10-14 21:37:43 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-15 15:57:38 -0400 |
commit | e9edda697ed7697f1288d0656570e49c47e204ae (patch) | |
tree | 6d43d602b7e0eb98940a516e0e0d2c8fd1a7006a /drivers/net/tg3.c | |
parent | 88a15f2e28bd6a908b2925f1b76e70ef3a88297d (diff) |
netdev: convert non-obvious instances to use ARRAY_SIZE()
This will convert remaining non-obvious or naive calculations of array
sizes to use ARRAY_SIZE() macro.
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 30b1cca8144c..76efb3feffbf 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -9034,7 +9034,7 @@ static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len) | |||
9034 | int i; | 9034 | int i; |
9035 | u32 j; | 9035 | u32 j; |
9036 | 9036 | ||
9037 | for (i = 0; i < sizeof(test_pattern)/sizeof(u32); i++) { | 9037 | for (i = 0; i < ARRAY_SIZE(test_pattern); i++) { |
9038 | for (j = 0; j < len; j += 4) { | 9038 | for (j = 0; j < len; j += 4) { |
9039 | u32 val; | 9039 | u32 val; |
9040 | 9040 | ||