drivers/net: Remove alloc_etherdev error messages
alloc_etherdev has a generic OOM/unable to alloc message. Remove the duplicative messages after alloc_etherdev calls. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

szülő
e404decb0f
commit
41de8d4cff
@@ -1424,10 +1424,8 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
|
||||
|
||||
/* alloc_etherdev ensures aligned and zeroed private structures */
|
||||
dev = alloc_etherdev (sizeof (*tp));
|
||||
if (!dev) {
|
||||
pr_err("ether device alloc failed, aborting\n");
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
if (pci_resource_len (pdev, 0) < tulip_tbl[chip_idx].io_size) {
|
||||
|
@@ -222,10 +222,9 @@ static int __devinit xircom_probe(struct pci_dev *pdev, const struct pci_device_
|
||||
is available.
|
||||
*/
|
||||
dev = alloc_etherdev(sizeof(struct xircom_private));
|
||||
if (!dev) {
|
||||
pr_err("%s: failed to allocate etherdev\n", __func__);
|
||||
if (!dev)
|
||||
goto device_fail;
|
||||
}
|
||||
|
||||
private = netdev_priv(dev);
|
||||
|
||||
/* Allocate the send/receive buffers */
|
||||
|
Reference in New Issue
Block a user