diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2021-02-17 12:47:41 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-03-08 10:46:27 +0100 |
commit | f9d8cbf33e9fceee671a49760cdcfa4be6a55102 (patch) | |
tree | 90a33532103603e2a8e807a0073054546cc62220 /arch/s390 | |
parent | eba8e1af5a61e61e5d77e1dfe1e8e20735ebc9c6 (diff) | |
download | linux-f9d8cbf33e9fceee671a49760cdcfa4be6a55102.tar.bz2 |
s390/topology: remove always false if check
The cpumask being checked in cpu_group_map() must have at least one
cpu set; therefore remove the check.
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/topology.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/kernel/topology.c b/arch/s390/kernel/topology.c index e7ce447651b9..bfcc327acc6b 100644 --- a/arch/s390/kernel/topology.c +++ b/arch/s390/kernel/topology.c @@ -76,8 +76,6 @@ static void cpu_group_map(cpumask_t *dst, struct mask_info *info, unsigned int c } info = info->next; } - if (cpumask_empty(&mask)) - cpumask_copy(&mask, cpumask_of(cpu)); break; case TOPOLOGY_MODE_PACKAGE: cpumask_copy(&mask, cpu_present_mask); |