diff options
-rw-r--r-- | drivers/net/tg3.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 0b5358072172..d6047bd6805d 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -8034,9 +8034,13 @@ static int tg3_test_nvram(struct tg3 *tp) | |||
8034 | for (i = 0; i < size; i++) | 8034 | for (i = 0; i < size; i++) |
8035 | csum8 += buf8[i]; | 8035 | csum8 += buf8[i]; |
8036 | 8036 | ||
8037 | if (csum8 == 0) | 8037 | if (csum8 == 0) { |
8038 | return 0; | 8038 | err = 0; |
8039 | return -EIO; | 8039 | goto out; |
8040 | } | ||
8041 | |||
8042 | err = -EIO; | ||
8043 | goto out; | ||
8040 | } | 8044 | } |
8041 | 8045 | ||
8042 | /* Bootstrap checksum at offset 0x10 */ | 8046 | /* Bootstrap checksum at offset 0x10 */ |