qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] target: mips: remove a initialisation to zero to fi


From: Jules Irenge
Subject: [Qemu-devel] [PATCH] target: mips: remove a initialisation to zero to fix checkpatch error
Date: Wed, 27 Mar 2019 10:23:23 +0000

Remove a space before bracket  to fix checkpatch error
"ERROR: do not initialise statics to 0 or NULL".

Signed-off-by: Jules Irenge <address@hidden>
---
 target/mips/cp0_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]