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:

committed by
David S. Miller

parent
5f3d9cb296
commit
e404decb0f
@@ -180,11 +180,9 @@ static int tlb_initialize(struct bonding *bond)
|
||||
int i;
|
||||
|
||||
new_hashtbl = kzalloc(size, GFP_KERNEL);
|
||||
if (!new_hashtbl) {
|
||||
pr_err("%s: Error: Failed to allocate TLB hash table\n",
|
||||
bond->dev->name);
|
||||
if (!new_hashtbl)
|
||||
return -1;
|
||||
}
|
||||
|
||||
_lock_tx_hashtbl_bh(bond);
|
||||
|
||||
bond_info->tx_hashtbl = new_hashtbl;
|
||||
@@ -784,11 +782,9 @@ static int rlb_initialize(struct bonding *bond)
|
||||
int i;
|
||||
|
||||
new_hashtbl = kmalloc(size, GFP_KERNEL);
|
||||
if (!new_hashtbl) {
|
||||
pr_err("%s: Error: Failed to allocate RLB hash table\n",
|
||||
bond->dev->name);
|
||||
if (!new_hashtbl)
|
||||
return -1;
|
||||
}
|
||||
|
||||
_lock_rx_hashtbl_bh(bond);
|
||||
|
||||
bond_info->rx_hashtbl = new_hashtbl;
|
||||
|
Reference in New Issue
Block a user