aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic
diff options
context:
space:
mode:
authorAlex Dewar <alex.dewar90@gmail.com>2020-08-20 18:47:25 +0100
committerDavid S. Miller <davem@davemloft.net>2020-08-20 16:16:12 -0700
commit31ac155cc1e5cdf67dce8208a3071982f5d7fbec (patch)
tree2955009c7cbb3f230eaaa43d22c7416c7e963f34 /drivers/net/ethernet/qlogic
parentMerge branch 'tcp_mmap-optmizations' (diff)
downloadlinux-dev-31ac155cc1e5cdf67dce8208a3071982f5d7fbec.tar.xz
linux-dev-31ac155cc1e5cdf67dce8208a3071982f5d7fbec.zip
net: qed: Remove unnecessary cast
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>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_rdma.c1
1 files changed, 0 insertions, 1 deletions
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);