summaryrefslogtreecommitdiffstats
path: root/drivers/accel
diff options
context:
space:
mode:
authorXU pengfei <xupengfei@nfschina.com>2023-01-10 11:35:13 +0100
committerOded Gabbay <ogabbay@kernel.org>2023-01-26 10:52:12 +0100
commit0970380a7eba3808e12749713ac6acd0ac76d1bc (patch)
tree78664bf33e9dbbb46e5bd19ca801260be2d1d479 /drivers/accel
parenthabanalabs: Replace zero-length arrays with flexible-array members (diff)
downloadlinux-0970380a7eba3808e12749713ac6acd0ac76d1bc.tar.xz
linux-0970380a7eba3808e12749713ac6acd0ac76d1bc.zip
habanalabs: remove unnecessary (void*) conversions
data is a void * type and does not require a cast. Signed-off-by: XU pengfei <xupengfei@nfschina.com> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/accel')
-rw-r--r--drivers/accel/habanalabs/common/mmu/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/accel/habanalabs/common/mmu/mmu.c b/drivers/accel/habanalabs/common/mmu/mmu.c
index 2c1005f74cf4..a42ae8bc61e8 100644
--- a/drivers/accel/habanalabs/common/mmu/mmu.c
+++ b/drivers/accel/habanalabs/common/mmu/mmu.c
@@ -781,7 +781,7 @@ static void mmu_dma_mem_free_from_chunk(struct gen_pool *pool,
struct gen_pool_chunk *chunk,
void *data)
{
- struct hl_device *hdev = (struct hl_device *)data;
+ struct hl_device *hdev = data;
hl_asic_dma_free_coherent(hdev, (chunk->end_addr - chunk->start_addr) + 1,
(void *)chunk->start_addr, chunk->phys_addr);