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

parent
e404decb0f
commit
41de8d4cff
@@ -1362,10 +1362,8 @@ ks8695_probe(struct platform_device *pdev)
|
||||
|
||||
/* Initialise a net_device */
|
||||
ndev = alloc_etherdev(sizeof(struct ks8695_priv));
|
||||
if (!ndev) {
|
||||
dev_err(&pdev->dev, "could not allocate device.\n");
|
||||
if (!ndev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_NETDEV_DEV(ndev, &pdev->dev);
|
||||
|
||||
|
@@ -1419,10 +1419,8 @@ static int __devinit ks8851_probe(struct spi_device *spi)
|
||||
int ret;
|
||||
|
||||
ndev = alloc_etherdev(sizeof(struct ks8851_net));
|
||||
if (!ndev) {
|
||||
dev_err(&spi->dev, "failed to alloc ethernet device\n");
|
||||
if (!ndev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
spi->bits_per_word = 8;
|
||||
|
||||
|
Reference in New Issue
Block a user