aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index b9e1dc662363..014dc2cfe4d6 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -9040,7 +9040,7 @@ static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len)
9040 int i; 9040 int i;
9041 u32 j; 9041 u32 j;
9042 9042
9043 for (i = 0; i < sizeof(test_pattern)/sizeof(u32); i++) { 9043 for (i = 0; i < ARRAY_SIZE(test_pattern); i++) {
9044 for (j = 0; j < len; j += 4) { 9044 for (j = 0; j < len; j += 4) {
9045 u32 val; 9045 u32 val;
9046 9046