diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-07-18 03:02:56 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-07-18 04:17:23 -0400 |
commit | 61282affd2b877cdc86df1f212b2b1a17317bf57 (patch) | |
tree | 6e5a1cd02fd849c90a0cba16a5dd5dba7c876d12 | |
parent | 7b1058bc59ac24eb01e259749e8655fb884aa711 (diff) |
s390/smp: clean up a condition
I can never remember precedence rules. Let's add some parenthesis so
this code is more clear.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/kernel/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 5c8f7caf9f31..35531fe1c5ea 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -887,7 +887,7 @@ void __init smp_fill_possible_mask(void) | |||
887 | 887 | ||
888 | sclp_max = max(sclp.mtid, sclp.mtid_cp) + 1; | 888 | sclp_max = max(sclp.mtid, sclp.mtid_cp) + 1; |
889 | sclp_max = min(smp_max_threads, sclp_max); | 889 | sclp_max = min(smp_max_threads, sclp_max); |
890 | sclp_max = sclp.max_cores * sclp_max ?: nr_cpu_ids; | 890 | sclp_max = (sclp.max_cores * sclp_max) ?: nr_cpu_ids; |
891 | possible = setup_possible_cpus ?: nr_cpu_ids; | 891 | possible = setup_possible_cpus ?: nr_cpu_ids; |
892 | possible = min(possible, sclp_max); | 892 | possible = min(possible, sclp_max); |
893 | for (cpu = 0; cpu < possible && cpu < nr_cpu_ids; cpu++) | 893 | for (cpu = 0; cpu < possible && cpu < nr_cpu_ids; cpu++) |