mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +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
|
@ -941,11 +941,9 @@ void __orinoco_ev_rx(struct net_device *dev, struct hermes *hw)
|
|||
|
||||
/* Add desc and skb to rx queue */
|
||||
rx_data = kzalloc(sizeof(*rx_data), GFP_ATOMIC);
|
||||
if (!rx_data) {
|
||||
printk(KERN_WARNING "%s: Can't allocate RX packet\n",
|
||||
dev->name);
|
||||
if (!rx_data)
|
||||
goto drop;
|
||||
}
|
||||
|
||||
rx_data->desc = desc;
|
||||
rx_data->skb = skb;
|
||||
list_add_tail(&rx_data->list, &priv->rx_list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue