Skip to contentSkip to conversation

ppc_booke: drop useless assignment

PATCH Applied [email protected] 3 participants 3 messages Mar 24, 2017 – Apr 22, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc_booke: drop useless assignment

From: KONRAD Frederic <[email protected]>

The tb_env variable is set two lines above. So just drop the double assignment.

---
 hw/ppc/ppc_booke.c | 1 -
 1 file changed, 1 deletion(-)
hw/ppc/ppc_booke.c +0 -1
index 60baffa..23bcf1b 100644
@@ -282,7 +282,6 @@ void store_booke_tcr(CPUPPCState *env, target_ulong val)
     ppc_tb_t *tb_env = env->tb_env;
     booke_timer_t *booke_timer = tb_env->opaque;
 
-    tb_env = env->tb_env;
     env->spr[SPR_BOOKE_TCR] = val;
     kvmppc_set_tcr(cpu);
 
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Le 24/03/2017 à 13:55, [email protected] a écrit :

From: KONRAD Frederic <[email protected]>

The tb_env variable is set two lines above. So just drop the double assignment.

---
 hw/ppc/ppc_booke.c | 1 -
 1 file changed, 1 deletion(-)
hw/ppc/ppc_booke.c +0 -0
index 60baffa..23bcf1b 100644

hw/ppc/ppc_booke.c void store_booke_tcr(CPUPPCState *env, target_ulong val) · line 287

Quoted 7 lines
hw/ppc/ppc_booke.c +0 -1
@@ -282,7 +282,6 @@ void store_booke_tcr(CPUPPCState *env, target_ulong val)
     ppc_tb_t *tb_env = env->tb_env;
     booke_timer_t *booke_timer = tb_env->opaque;
 
-    tb_env = env->tb_env;
     env->spr[SPR_BOOKE_TCR] = val;
     kvmppc_set_tcr(cpu);