projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d34ed56
)
IB/hfi1: Remove the debug trace message in pin_sdma_pages()
author
Harish Chegondi
<
[email protected]
>
Tue, 26 Sep 2017 14:00:17 +0000
(07:00 -0700)
committer
Doug 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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hfi1/user_sdma.c
b/drivers/infiniband/hw/hfi1/user_sdma.c
index 4ea29ed19dd3a532352fc0895260a7ed7998845a..01b9a9c6c2af1f58bb0d8b1450c08a7dc6b595d6 100644
(file)
--- a/
drivers/infiniband/hw/hfi1/user_sdma.c
+++ b/
drivers/infiniband/hw/hfi1/user_sdma.c
@@
-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;