aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-03-07 23:16:38 +0100
committerAlexander Graf <agraf@suse.de>2015-03-09 15:00:08 +0100
commita9ab06d1187f5967d315052da948afba6c3ba651 (patch)
treec934fd16bbcc865a23f4c8f66120072d55c68d32
parent2aad88f4b05303531bc9aad6531258616d95af52 (diff)
downloadqemu-a9ab06d1187f5967d315052da948afba6c3ba651.zip
qemu-a9ab06d1187f5967d315052da948afba6c3ba651.tar.gz
qemu-a9ab06d1187f5967d315052da948afba6c3ba651.tar.bz2
target-ppc: Fix warnings from Sparse
Sparse report: target-ppc/mmu-hash64.c:353:9: warning: returning void-valued expression target-ppc/mmu-hash64.c:620:9: warning: returning void-valued expression Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--target-ppc/mmu-hash64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-ppc/mmu-hash64.c b/target-ppc/mmu-hash64.c
index 971751f..7df6ede 100644
--- a/target-ppc/mmu-hash64.c
+++ b/target-ppc/mmu-hash64.c
@@ -350,7 +350,7 @@ uint64_t ppc_hash64_start_access(PowerPCCPU *cpu, target_ulong pte_index)
void ppc_hash64_stop_access(uint64_t token)
{
if (kvmppc_kern_htab) {
- return kvmppc_hash64_free_pteg(token);
+ kvmppc_hash64_free_pteg(token);
}
}
@@ -632,7 +632,8 @@ void ppc_hash64_store_hpte(CPUPPCState *env,
CPUState *cs = CPU(ppc_env_get_cpu(env));
if (kvmppc_kern_htab) {
- return kvmppc_hash64_write_pte(env, pte_index, pte0, pte1);
+ kvmppc_hash64_write_pte(env, pte_index, pte0, pte1);
+ return;
}
pte_index *= HASH_PTE_SIZE_64;