IB/mthca: Remove debug prints after allocation failure
authorLeon Romanovsky <leon@kernel.org>
Thu, 3 Nov 2016 14:44:20 +0000 (16:44 +0200)
committerDoug Ledford <dledford@redhat.com>
Sat, 3 Dec 2016 18:12:52 +0000 (13:12 -0500)
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>
drivers/infiniband/hw/mthca/mthca_reset.c

index 6727af27c017db48c5aaa5cc6b549d68671d65fe..2a6979e4ae1c07032942da85464fe9c5be10644f 100644 (file)
@@ -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;
                }