Skip to content

Commit

Permalink
target-ppc: Fix warnings from Sparse
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stweil authored and agraf committed Mar 9, 2015
1 parent 2aad88f commit a9ab06d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions target-ppc/mmu-hash64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a9ab06d

Please sign in to comment.