diff options
Diffstat (limited to 'drivers/net/ethernet/marvell/skge.c')
-rw-r--r-- | drivers/net/ethernet/marvell/skge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c index 5a30bf823099..91836b54da35 100644 --- a/drivers/net/ethernet/marvell/skge.c +++ b/drivers/net/ethernet/marvell/skge.c | |||
@@ -3945,8 +3945,10 @@ static int __devinit skge_probe(struct pci_dev *pdev, | |||
3945 | skge_board_name(hw), hw->chip_rev); | 3945 | skge_board_name(hw), hw->chip_rev); |
3946 | 3946 | ||
3947 | dev = skge_devinit(hw, 0, using_dac); | 3947 | dev = skge_devinit(hw, 0, using_dac); |
3948 | if (!dev) | 3948 | if (!dev) { |
3949 | err = -ENOMEM; | ||
3949 | goto err_out_led_off; | 3950 | goto err_out_led_off; |
3951 | } | ||
3950 | 3952 | ||
3951 | /* Some motherboards are broken and has zero in ROM. */ | 3953 | /* Some motherboards are broken and has zero in ROM. */ |
3952 | if (!is_valid_ether_addr(dev->dev_addr)) | 3954 | if (!is_valid_ether_addr(dev->dev_addr)) |