[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] ppc_booke: drop useless assignment
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-trivial] [PATCH] ppc_booke: drop useless assignment |
Date: |
Sat, 25 Mar 2017 11:58:48 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Le 24/03/2017 à 13:55, address@hidden a écrit :
> From: KONRAD Frederic <address@hidden>
>
> The tb_env variable is set two lines above. So just drop the double
> assignment.
>
> Signed-off-by: KONRAD Frederic <address@hidden>
> ---
> hw/ppc/ppc_booke.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/hw/ppc/ppc_booke.c b/hw/ppc/ppc_booke.c
> index 60baffa..23bcf1b 100644
> --- a/hw/ppc/ppc_booke.c
> +++ b/hw/ppc/ppc_booke.c
> @@ -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);
>
>
Reviewed-by: Laurent Vivier <address@hidden>