habanalabs: fix double assignment in MMU V1
PATCH 1/1 habanalabs: fix double assignment in MMU V1
Removing double assignment of the hop2_pte_addr
variable in dram_default_mapping_fini().
Dead store reported by clang-analyzer.
Signed-off-by Marco Pagani <[email protected]>
--- drivers/misc/habanalabs/common/mmu/mmu_v1.c | 1 - 1 file changed, 1 deletion(-)
drivers/misc/habanalabs/common/mmu/mmu_v1.c +0 -1
@@ -344,7 +344,6 @@ static void dram_default_mapping_fini(struct hl_ctx *ctx) } } - hop2_pte_addr = hop2_addr; hop2_pte_addr = hop2_addr;for (i =0 ; i < num_of_hop3 ; i++) {clear_pte (ctx, hop2_pte_addr);
Signature · 1 line
2.38.1
Quoted 24 lines · Marco Pagani
Removing double assignment of the
hop2_pte_addr
variable indram_default_mapping_fini().Dead store reported by clang-analyzer.
Signed-off-by Marco Pagani <[email protected]>--- drivers/misc/habanalabs/common/mmu/mmu_v1.c | 1 - 1 file changed, 1 deletion(-)drivers/misc/habanalabs/common/mmu/mmu_v1.c +0
-2@@ -344,7 +344,6 @@ static void dram_default_mapping_fini(struct hl_ctx *ctx) } } - hop2_pte_addr = hop2_addr; hop2_pte_addr = hop2_addr;for (i =0 ; i < num_of_hop3 ; i++) {clear_pte (ctx, hop2_pte_addr); --
Quoted 2 lines
2.38.1
Reviewed-by Oded Gabbay <[email protected]>
Applied to -next.
Thanks,
Oded