提交 740c330e 编写于 作者: L Leon Romanovsky 提交者: Doug Ledford

IB/ocrdma: Remove and fix 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: NLeon Romanovsky <leon@kernel.org>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 02d93f8e
...@@ -1596,10 +1596,9 @@ void ocrdma_alloc_pd_pool(struct ocrdma_dev *dev) ...@@ -1596,10 +1596,9 @@ void ocrdma_alloc_pd_pool(struct ocrdma_dev *dev)
dev->pd_mgr = kzalloc(sizeof(struct ocrdma_pd_resource_mgr), dev->pd_mgr = kzalloc(sizeof(struct ocrdma_pd_resource_mgr),
GFP_KERNEL); GFP_KERNEL);
if (!dev->pd_mgr) { if (!dev->pd_mgr)
pr_err("%s(%d)Memory allocation failure.\n", __func__, dev->id);
return; return;
}
status = ocrdma_mbx_alloc_pd_range(dev); status = ocrdma_mbx_alloc_pd_range(dev);
if (status) { if (status) {
pr_err("%s(%d) Unable to initialize PD pool, using default.\n", pr_err("%s(%d) Unable to initialize PD pool, using default.\n",
......
...@@ -84,10 +84,8 @@ bool ocrdma_alloc_stats_resources(struct ocrdma_dev *dev) ...@@ -84,10 +84,8 @@ bool ocrdma_alloc_stats_resources(struct ocrdma_dev *dev)
/* Alloc debugfs mem */ /* Alloc debugfs mem */
mem->debugfs_mem = kzalloc(OCRDMA_MAX_DBGFS_MEM, GFP_KERNEL); mem->debugfs_mem = kzalloc(OCRDMA_MAX_DBGFS_MEM, GFP_KERNEL);
if (!mem->debugfs_mem) { if (!mem->debugfs_mem)
pr_err("%s: stats debugfs mem allocation failed\n", __func__);
return false; return false;
}
return true; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册