From: Marco Pagani Date: Tue, 29 Nov 2022 11:52:17 +0000 (+0100) Subject: habanalabs: fix double assignment in MMU V1 X-Git-Tag: v6.6.7~3356^2~21^2~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8364fb3cdd03d8c3ee5c1074eba0028a6ea7acfd;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- diff --git a/drivers/misc/habanalabs/common/mmu/mmu_v1.c b/drivers/misc/habanalabs/common/mmu/mmu_v1.c index 8a40de4..d925dc4 100644 --- a/drivers/misc/habanalabs/common/mmu/mmu_v1.c +++ b/drivers/misc/habanalabs/common/mmu/mmu_v1.c @@ -345,7 +345,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); put_pte(ctx, hop2_addr);