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:

gecommit door
David S. Miller

bovenliggende
e404decb0f
commit
41de8d4cff
@@ -3852,10 +3852,8 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port,
|
||||
struct skge_port *skge;
|
||||
struct net_device *dev = alloc_etherdev(sizeof(*skge));
|
||||
|
||||
if (!dev) {
|
||||
dev_err(&hw->pdev->dev, "etherdev alloc failed\n");
|
||||
if (!dev)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SET_NETDEV_DEV(dev, &hw->pdev->dev);
|
||||
dev->netdev_ops = &skge_netdev_ops;
|
||||
|
Verwijs in nieuw issue
Block a user