diff options
Diffstat (limited to 'drivers/net/ethernet/realtek/8139too.c')
-rw-r--r-- | drivers/net/ethernet/realtek/8139too.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/realtek/8139too.c b/drivers/net/ethernet/realtek/8139too.c index a8779bedb3d9..1c3feb0116b5 100644 --- a/drivers/net/ethernet/realtek/8139too.c +++ b/drivers/net/ethernet/realtek/8139too.c | |||
@@ -754,10 +754,9 @@ static __devinit struct net_device * rtl8139_init_board (struct pci_dev *pdev) | |||
754 | 754 | ||
755 | /* dev and priv zeroed in alloc_etherdev */ | 755 | /* dev and priv zeroed in alloc_etherdev */ |
756 | dev = alloc_etherdev (sizeof (*tp)); | 756 | dev = alloc_etherdev (sizeof (*tp)); |
757 | if (dev == NULL) { | 757 | if (dev == NULL) |
758 | dev_err(&pdev->dev, "Unable to alloc new net device\n"); | ||
759 | return ERR_PTR(-ENOMEM); | 758 | return ERR_PTR(-ENOMEM); |
760 | } | 759 | |
761 | SET_NETDEV_DEV(dev, &pdev->dev); | 760 | SET_NETDEV_DEV(dev, &pdev->dev); |
762 | 761 | ||
763 | tp = netdev_priv(dev); | 762 | tp = netdev_priv(dev); |