[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <9dade53620b9532ff76a726320a497c67138264c.1598331148.git.joe@perches.com>
Date: Mon, 24 Aug 2020 21:56:01 -0700
From: Joe Perches <joe@...ches.com>
To: Jiri Kosina <trivial@...nel.org>, linux-kernel@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>, sparclinux@...r.kernel.org
Subject: [PATCH 04/29] sparc: Avoid comma separated statements
Use semicolons and braces.
Signed-off-by: Joe Perches <joe@...ches.com>
---
arch/sparc/kernel/smp_64.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c
index e286e2badc8a..28c11f7871cd 100644
--- a/arch/sparc/kernel/smp_64.c
+++ b/arch/sparc/kernel/smp_64.c
@@ -186,8 +186,11 @@ static inline long get_delta (long *rt, long *master)
wmb();
t1 = tick_ops->get_tick();
- if (t1 - t0 < best_t1 - best_t0)
- best_t0 = t0, best_t1 = t1, best_tm = tm;
+ if (t1 - t0 < best_t1 - best_t0) {
+ best_t0 = t0;
+ best_t1 = t1;
+ best_tm = tm;
+ }
}
*rt = best_t1 - best_t0;
--
2.26.0
Powered by blists - more mailing lists