Commit 0970380a authored by XU pengfei's avatar XU pengfei Committed by Oded Gabbay

habanalabs: remove unnecessary (void*) conversions

data is a void * type and does not require a cast.
Signed-off-by: default avatarXU pengfei <xupengfei@nfschina.com>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 7d352a81
...@@ -781,7 +781,7 @@ static void mmu_dma_mem_free_from_chunk(struct gen_pool *pool, ...@@ -781,7 +781,7 @@ static void mmu_dma_mem_free_from_chunk(struct gen_pool *pool,
struct gen_pool_chunk *chunk, struct gen_pool_chunk *chunk,
void *data) 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, hl_asic_dma_free_coherent(hdev, (chunk->end_addr - chunk->start_addr) + 1,
(void *)chunk->start_addr, chunk->phys_addr); (void *)chunk->start_addr, chunk->phys_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment