aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/agent.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leon@kernel.org>2016-11-03 16:44:10 +0200
committerDoug Ledford <dledford@redhat.com>2016-12-03 13:12:52 -0500
commita0b3455fcb2d1b3e486349a4a51803c3cb3847b5 (patch)
tree24d8e298d9480f0fb7e0c6bde2854598ff45d0bf /drivers/infiniband/core/agent.c
parentIB/mad: Remove debug prints after allocation failure (diff)
downloadlinux-dev-a0b3455fcb2d1b3e486349a4a51803c3cb3847b5.tar.xz
linux-dev-a0b3455fcb2d1b3e486349a4a51803c3cb3847b5.zip
IB/core: Remove debug prints after allocation failure
The prints after [k|v][m|z|c]alloc() functions are not needed, because in case of failure, allocator will print their internal error prints anyway. Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/agent.c')
-rw-r--r--drivers/infiniband/core/agent.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/core/agent.c b/drivers/infiniband/core/agent.c
index 4fa524dfb6cf..11dacd97a667 100644
--- a/drivers/infiniband/core/agent.c
+++ b/drivers/infiniband/core/agent.c
@@ -156,7 +156,6 @@ int ib_agent_port_open(struct ib_device *device, int port_num)
/* Create new device info */
port_priv = kzalloc(sizeof *port_priv, GFP_KERNEL);
if (!port_priv) {
- dev_err(&device->dev, "No memory for ib_agent_port_private\n");
ret = -ENOMEM;
goto error1;
}