[Qemu-devel] [PATCH] target: mips: remove a initialisation to zero to fix checkpatch error

Jules Irenge posted 1 patch 5 years ago
Failed in applying to current master (apply log)
target/mips/cp0_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[Qemu-devel] [PATCH] target: mips: remove a initialisation to zero to fix checkpatch error
Posted by Jules Irenge 5 years ago
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(-)

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