diff options
author | Joe Perches | 2013-02-04 17:48:16 +0100 |
---|---|---|
committer | David S. Miller | 2013-02-06 20:58:52 +0100 |
commit | 62b5942aa5182686e6bab2c6db5dbf2672b8981e (patch) | |
tree | 055163d888b75a74b247a437cd26c141834e3456 /net/core/netprio_cgroup.c | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsh... (diff) | |
download | kernel-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.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, |