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
@@ -1501,10 +1501,8 @@ static int ks_hw_init(struct ks_net *ks)
|
||||
ks->mcast_lst_size = 0;
|
||||
|
||||
ks->frame_head_info = kmalloc(MHEADER_SIZE, GFP_KERNEL);
|
||||
if (!ks->frame_head_info) {
|
||||
pr_err("Error: Fail to allocate frame memory\n");
|
||||
if (!ks->frame_head_info)
|
||||
return false;
|
||||
}
|
||||
|
||||
ks_set_mac(ks, KS_DEFAULT_MAC_ADDRESS);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user