diff options
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 38962afdce6..9d7defc2628 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -9748,7 +9748,7 @@ static int tg3_get_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom, | |||
9748 | eeprom->len += b_count; | 9748 | eeprom->len += b_count; |
9749 | } | 9749 | } |
9750 | 9750 | ||
9751 | /* read bytes upto the last 4 byte boundary */ | 9751 | /* read bytes up to the last 4 byte boundary */ |
9752 | pd = &data[eeprom->len]; | 9752 | pd = &data[eeprom->len]; |
9753 | for (i = 0; i < (len - (len & 3)); i += 4) { | 9753 | for (i = 0; i < (len - (len & 3)); i += 4) { |
9754 | ret = tg3_nvram_read_be32(tp, offset + i, &val); | 9754 | ret = tg3_nvram_read_be32(tp, offset + i, &val); |