diff options
author | Leon Romanovsky <leon@kernel.org> | 2016-11-03 16:44:20 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-03 13:12:52 -0500 |
commit | 870b2852455266996e55b3152a5ef40b45e853ec (patch) | |
tree | 6e87b82e9c9489f26443946f085b1e711e41b301 /drivers/infiniband/hw/mthca/mthca_reset.c | |
parent | 2e65835a1ba0607cb212ec687e509ee6c24a68ed (diff) | |
download | linux-870b2852455266996e55b3152a5ef40b45e853ec.tar.gz linux-870b2852455266996e55b3152a5ef40b45e853ec.tar.bz2 linux-870b2852455266996e55b3152a5ef40b45e853ec.zip |
IB/mthca: 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/hw/mthca/mthca_reset.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_reset.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_reset.c b/drivers/infiniband/hw/mthca/mthca_reset.c index 6727af27c017..2a6979e4ae1c 100644 --- a/drivers/infiniband/hw/mthca/mthca_reset.c +++ b/drivers/infiniband/hw/mthca/mthca_reset.c @@ -96,8 +96,6 @@ int mthca_reset(struct mthca_dev *mdev) hca_header = kmalloc(256, GFP_KERNEL); if (!hca_header) { err = -ENOMEM; - mthca_err(mdev, "Couldn't allocate memory to save HCA " - "PCI header, aborting.\n"); goto put_dev; } @@ -119,8 +117,6 @@ int mthca_reset(struct mthca_dev *mdev) bridge_header = kmalloc(256, GFP_KERNEL); if (!bridge_header) { err = -ENOMEM; - mthca_err(mdev, "Couldn't allocate memory to save HCA " - "bridge PCI header, aborting.\n"); goto free_hca; } |