Message ID | 20190327102323.6959-1-jbi.octave@gmail.com |
---|---|
State | New |
Headers | show |
Series | target: mips: remove a initialisation to zero to fix checkpatch error | expand |
diff --git a/target/mips/cp0_timer.c b/target/mips/cp0_timer.c index 96a8cb68ef..ffa460be25 100644 --- a/target/mips/cp0_timer.c +++ b/target/mips/cp0_timer.c @@ -32,7 +32,7 @@ uint32_t cpu_mips_get_random(CPUMIPSState *env) { static uint32_t seed = 1; - static uint32_t prev_idx = 0; + static uint32_t prev_idx; uint32_t idx; uint32_t nb_rand_tlb = env->tlb->nb_tlb - env->CP0_Wired;
Remove a space before bracket to fix checkpatch error "ERROR: do not initialise statics to 0 or NULL". Signed-off-by: Jules Irenge <jbi.octave@gmail.com> --- target/mips/cp0_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)