projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6e6776
)
net: qed: Remove unnecessary cast
author
Alex Dewar
<alex.dewar90@gmail.com>
Thu, 20 Aug 2020 17:47:25 +0000
(18:47 +0100)
committer
David S. Miller
<davem@davemloft.net>
Thu, 20 Aug 2020 23:16:12 +0000
(16:16 -0700)
In qed_rdma_destroy_cq() the result of dma_alloc_coherent() is cast from
void* unnecessarily. Remove cast.
Issue identified with Coccinelle.
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_rdma.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qed/qed_rdma.c
b/drivers/net/ethernet/qlogic/qed/qed_rdma.c
index a4bcde522cdf9d7267794b5cc8af7946ee6d084f..4394a4d77224b9d552e007d6ebdaac18b5b39a8b 100644
(file)
--- a/
drivers/net/ethernet/qlogic/qed/qed_rdma.c
+++ b/
drivers/net/ethernet/qlogic/qed/qed_rdma.c
@@
-1151,7
+1151,6
@@
qed_rdma_destroy_cq(void *rdma_cxt,
DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "icid = %08x\n", in_params->icid);
p_ramrod_res =
- (struct rdma_destroy_cq_output_params *)
dma_alloc_coherent(&p_hwfn->cdev->pdev->dev,
sizeof(struct rdma_destroy_cq_output_params),
&ramrod_res_phys, GFP_KERNEL);