diff options
author | Joe Perches <joe@perches.com> | 2013-02-04 16:48:16 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-06 14:58:52 -0500 |
commit | 62b5942aa5182686e6bab2c6db5dbf2672b8981e (patch) | |
tree | 055163d888b75a74b247a437cd26c141834e3456 /net/core/netprio_cgroup.c | |
parent | 4d9e01da87caa9bc63c3284ab38e0dd53eeab6ae (diff) | |
download | blackbird-op-linux-62b5942aa5182686e6bab2c6db5dbf2672b8981e.tar.gz blackbird-op-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.c | 4 |
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, |