Re: [PATCH 03/29] ia64: Avoid comma separated statements

2021-01-30 Thread Joe Perches
On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote:
> Use semicolons and braces.

ping?


> Signed-off-by: Joe Perches 
> ---
>  arch/ia64/kernel/smpboot.c | 7 +--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c
> index c29c600d7967..3311b9d21319 100644
> --- a/arch/ia64/kernel/smpboot.c
> +++ b/arch/ia64/kernel/smpboot.c
> @@ -224,8 +224,11 @@ get_delta (long *rt, long *master)
>   go[SLAVE] = 0;
>   t1 = ia64_get_itc();
>  
> 
> - 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;




[PATCH 03/29] ia64: Avoid comma separated statements

2020-08-24 Thread Joe Perches
Use semicolons and braces.

Signed-off-by: Joe Perches 
---
 arch/ia64/kernel/smpboot.c | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c
index c29c600d7967..3311b9d21319 100644
--- a/arch/ia64/kernel/smpboot.c
+++ b/arch/ia64/kernel/smpboot.c
@@ -224,8 +224,11 @@ get_delta (long *rt, long *master)
go[SLAVE] = 0;
t1 = ia64_get_itc();
 
-   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