Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 870b2852 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Doug Ledford
Browse files

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: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 2e65835a
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
		}