mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
drivers/net: Remove unnecessary k.alloc/v.alloc OOM messages
alloc failures use dump_stack so emitting an additional out-of-memory message is an unnecessary duplication. Remove the allocation failure messages. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5f3d9cb296
commit
e404decb0f
60 changed files with 77 additions and 233 deletions
|
@ -237,11 +237,8 @@ static int __devinit rgmii_probe(struct platform_device *ofdev)
|
|||
|
||||
rc = -ENOMEM;
|
||||
dev = kzalloc(sizeof(struct rgmii_instance), GFP_KERNEL);
|
||||
if (dev == NULL) {
|
||||
printk(KERN_ERR "%s: could not allocate RGMII device!\n",
|
||||
np->full_name);
|
||||
if (dev == NULL)
|
||||
goto err_gone;
|
||||
}
|
||||
|
||||
mutex_init(&dev->lock);
|
||||
dev->ofdev = ofdev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue