diff mbox series

[4/8] target/mips: Add * to comments and realign them to fix checkpatch warnings

Message ID 1556018982-3715-5-git-send-email-aleksandar.markovic@rt-rk.com
State New
Headers show
Series target/mips: Clean up misc code segments | expand

Commit Message

Aleksandar Markovic April 23, 2019, 11:29 a.m. UTC
From: Jules Irenge <jbi.octave@gmail.com>

Add * to comments and realign to fix warnings issued by checkpatch.pl
tool "WARNING: Block comments use a leading /* on a separate line"
within the file target/mips/cp0_timer.c.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <20190327181650.23992-1-jbi.octave@gmail.com>
---
 target/mips/cp0_timer.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/target/mips/cp0_timer.c b/target/mips/cp0_timer.c
index 742f4b2..d80b007 100644
--- a/target/mips/cp0_timer.c
+++ b/target/mips/cp0_timer.c
@@ -42,8 +42,10 @@  uint32_t cpu_mips_get_random(CPUMIPSState *env)
 
     /* Don't return same value twice, so get another value */
     do {
-        /* Use a simple algorithm of Linear Congruential Generator
-         * from ISO/IEC 9899 standard. */
+        /*
+         * Use a simple algorithm of Linear Congruential Generator
+         * from ISO/IEC 9899 standard.
+         */
         seed = 1103515245 * seed + 12345;
         idx = (seed >> 16) % nb_rand_tlb + env->CP0_Wired;
     } while (idx == prev_idx);
@@ -143,9 +145,11 @@  static void mips_timer_cb(void *opaque)
     if (env->CP0_Cause & (1 << CP0Ca_DC))
         return;
 
-    /* ??? This callback should occur when the counter is exactly equal to
-       the comparator value.  Offset the count by one to avoid immediately
-       retriggering the callback before any virtual time has passed.  */
+    /*
+     * ??? This callback should occur when the counter is exactly equal to
+     * the comparator value.  Offset the count by one to avoid immediately
+     * retriggering the callback before any virtual time has passed.
+     */
     env->CP0_Count++;
     cpu_mips_timer_expire(env);
     env->CP0_Count--;