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

Commit 4029e2a3 authored by Harish Chegondi's avatar Harish Chegondi Committed by Doug Ledford
Browse files

IB/hfi1: Remove the debug trace message in pin_sdma_pages()



Remove the debug trace statement in pin_sdma_pages() that
gets executed when there is a memory allocation failure as
the trace message doesn't help with debugging the memory
allocation failure.

Cc: Leon Romanovsky <leon@kernel.org>
Reviewed-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarHarish Chegondi <harish.chegondi@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent d34ed562
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -956,10 +956,8 @@ static int pin_sdma_pages(struct user_sdma_request *req,
	struct hfi1_user_sdma_pkt_q *pq = req->pq;

	pages = kcalloc(npages, sizeof(*pages), GFP_KERNEL);
	if (!pages) {
		SDMA_DBG(req, "Failed page array alloc");
	if (!pages)
		return -ENOMEM;
	}
	memcpy(pages, node->pages, node->npages * sizeof(*pages));

	npages -= node->npages;