mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
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>
This commit is contained in:
parent
7d352a8160
commit
0970380a7e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue