summaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-03 18:28:15 +0100
committerDavid S. Miller <davem@davemloft.net>2013-02-04 19:22:35 +0100
commite68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86 (patch)
tree139ba4fc12ad7de52a247f2d66b41e364edb1aa3 /drivers/net/virtio_net.c
parentwireless: Remove unnecessary alloc/OOM messages, alloc cleanups (diff)
downloadlinux-e68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86.tar.xz
linux-e68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86.zip
drivers:net:misc: Remove unnecessary alloc/OOM messages
alloc failures already get standardized OOM messages and a dump_stack. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index eda2042a6466..381a2d8d8a81 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -976,10 +976,8 @@ static void virtnet_set_rx_mode(struct net_device *dev)
buf = kzalloc(((uc_count + mc_count) * ETH_ALEN) +
(2 * sizeof(mac_data->entries)), GFP_ATOMIC);
mac_data = buf;
- if (!buf) {
- dev_warn(&dev->dev, "No memory for MAC address buffer\n");
+ if (!buf)
return;
- }
sg_init_table(sg, 2);