projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cda6797
)
habanalabs: fix double assignment in MMU V1
author
Marco Pagani
<marpagan@redhat.com>
Tue, 29 Nov 2022 11:52:17 +0000
(12:52 +0100)
committer
Oded Gabbay
<ogabbay@kernel.org>
Thu, 26 Jan 2023 08:56:20 +0000
(10:56 +0200)
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 <marpagan@redhat.com>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/mmu/mmu_v1.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/mmu/mmu_v1.c
b/drivers/misc/habanalabs/common/mmu/mmu_v1.c
index
8a40de4
..
d925dc4
100644
(file)
--- 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);