summaryrefslogtreecommitdiffstats
path: root/net/core/netprio_cgroup.c
diff options
context:
space:
mode:
authorJoe Perches2013-02-04 17:48:16 +0100
committerDavid S. Miller2013-02-06 20:58:52 +0100
commit62b5942aa5182686e6bab2c6db5dbf2672b8981e (patch)
tree055163d888b75a74b247a437cd26c141834e3456 /net/core/netprio_cgroup.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsh... (diff)
downloadkernel-qcow2-linux-62b5942aa5182686e6bab2c6db5dbf2672b8981e.tar.gz
kernel-qcow2-linux-62b5942aa5182686e6bab2c6db5dbf2672b8981e.tar.xz
kernel-qcow2-linux-62b5942aa5182686e6bab2c6db5dbf2672b8981e.zip
net: core: 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 'net/core/netprio_cgroup.c')
-rw-r--r--net/core/netprio_cgroup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/core/netprio_cgroup.c b/net/core/netprio_cgroup.c
index 5e67defe2cb0..0777d0aa18c3 100644
--- a/net/core/netprio_cgroup.c
+++ b/net/core/netprio_cgroup.c
@@ -69,10 +69,8 @@ static int extend_netdev_table(struct net_device *dev, u32 target_idx)
/* allocate & copy */
new = kzalloc(new_sz, GFP_KERNEL);
- if (!new) {
- pr_warn("Unable to alloc new priomap!\n");
+ if (!new)
return -ENOMEM;
- }
if (old)
memcpy(new->priomap, old->priomap,