aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tg3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index a76bb3dd30f7..22eb7c8c1a25 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -10251,8 +10251,7 @@ static int tg3_nvram_write_block_unbuffered(struct tg3 *tp, u32 offset, u32 len,
10251 phy_addr = offset & ~pagemask; 10251 phy_addr = offset & ~pagemask;
10252 10252
10253 for (j = 0; j < pagesize; j += 4) { 10253 for (j = 0; j < pagesize; j += 4) {
10254 /* Almost certainly should be tg3_nvram_read_le */ 10254 if ((ret = tg3_nvram_read_le(tp, phy_addr + j,
10255 if ((ret = tg3_nvram_read(tp, phy_addr + j,
10256 (__le32 *) (tmp + j)))) 10255 (__le32 *) (tmp + j))))
10257 break; 10256 break;
10258 } 10257 }