* [PATCH] net: qed: Remove unnecessary cast
@ 2020-08-20 17:47 Alex Dewar
2020-08-20 23:16 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Alex Dewar @ 2020-08-20 17:47 UTC (permalink / raw)
To: Ariel Elior, GR-everest-linux-l2, David S. Miller,
Jakub Kicinski, netdev, linux-kernel
Cc: Alex Dewar
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>
---
drivers/net/ethernet/qlogic/qed/qed_rdma.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/ethernet/qlogic/qed/qed_rdma.c b/drivers/net/ethernet/qlogic/qed/qed_rdma.c
index a4bcde522cdf..4394a4d77224 100644
--- 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);
--
2.28.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net: qed: Remove unnecessary cast
2020-08-20 17:47 [PATCH] net: qed: Remove unnecessary cast Alex Dewar
@ 2020-08-20 23:16 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-08-20 23:16 UTC (permalink / raw)
To: alex.dewar90; +Cc: aelior, GR-everest-linux-l2, kuba, netdev, linux-kernel
From: Alex Dewar <alex.dewar90@gmail.com>
Date: Thu, 20 Aug 2020 18:47:25 +0100
> 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>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-20 23:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 17:47 [PATCH] net: qed: Remove unnecessary cast Alex Dewar
2020-08-20 23:16 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®