aboutsummaryrefslogtreecommitdiff
path: root/target-cris/mmu.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 19:46:46 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 19:46:46 +0000
commit0d84be5bd0df34c2663b38d6efd7d850d15f2eb0 (patch)
tree69d2b99cab34c2883d7f28a0f1b5128f04e7f8a2 /target-cris/mmu.c
parent22ed1d34789b184aaaa28c1e4620ce4467744cec (diff)
cris: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-cris/mmu.c')
-rw-r--r--target-cris/mmu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target-cris/mmu.c b/target-cris/mmu.c
index b6892bbbf2..2a5ded8953 100644
--- a/target-cris/mmu.c
+++ b/target-cris/mmu.c
@@ -327,7 +327,6 @@ int cris_mmu_translate(struct cris_mmu_result *res,
CPUState *env, uint32_t vaddr,
int rw, int mmu_idx)
{
- uint32_t phy = vaddr;
int seg;
int miss = 0;
int is_user = mmu_idx == MMU_USER_IDX;
@@ -351,8 +350,7 @@ int cris_mmu_translate(struct cris_mmu_result *res,
miss = 0;
base = cris_mmu_translate_seg(env, seg);
- phy = base | (0x0fffffff & vaddr);
- res->phy = phy;
+ res->phy = base | (0x0fffffff & vaddr);
res->prot = PAGE_BITS;
}
else