IB/hfi1: Remove the debug trace message in pin_sdma_pages()
authorHarish Chegondi <[email protected]>
Tue, 26 Sep 2017 14:00:17 +0000 (07:00 -0700)
committerDoug Ledford <[email protected]>
Wed, 27 Sep 2017 15:34:13 +0000 (11:34 -0400)
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 <[email protected]>
Reviewed-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Harish Chegondi <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/hfi1/user_sdma.c

index 4ea29ed19dd3a532352fc0895260a7ed7998845a..01b9a9c6c2af1f58bb0d8b1450c08a7dc6b595d6 100644 (file)
@@ -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;