diff options
author | Leon Romanovsky <leon@kernel.org> | 2016-11-03 15:44:22 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-03 19:12:52 +0100 |
commit | 740c330ee677f4e79c3865f85c6af5a5c961fe34 (patch) | |
tree | 3262431d57e71acb4ad5d702ad1780f3cfa2f5a5 /drivers/infiniband/hw/ocrdma/ocrdma_hw.c | |
parent | IB/usninc: Remove and fix debug prints after allocation failure (diff) | |
download | linux-740c330ee677f4e79c3865f85c6af5a5c961fe34.tar.xz linux-740c330ee677f4e79c3865f85c6af5a5c961fe34.zip |
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: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_hw.c')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c index 67fc0b6857e1..12b27e7bc6a7 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c @@ -1596,10 +1596,9 @@ void ocrdma_alloc_pd_pool(struct ocrdma_dev *dev) dev->pd_mgr = kzalloc(sizeof(struct ocrdma_pd_resource_mgr), GFP_KERNEL); - if (!dev->pd_mgr) { - pr_err("%s(%d)Memory allocation failure.\n", __func__, dev->id); + if (!dev->pd_mgr) return; - } + status = ocrdma_mbx_alloc_pd_range(dev); if (status) { pr_err("%s(%d) Unable to initialize PD pool, using default.\n", |