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>
This commit is contained in:
@@ -76,8 +76,6 @@ static void cpu_group_map(cpumask_t *dst, struct mask_info *info, unsigned int c
|
|||||||
}
|
}
|
||||||
info = info->next;
|
info = info->next;
|
||||||
}
|
}
|
||||||
if (cpumask_empty(&mask))
|
|
||||||
cpumask_copy(&mask, cpumask_of(cpu));
|
|
||||||
break;
|
break;
|
||||||
case TOPOLOGY_MODE_PACKAGE:
|
case TOPOLOGY_MODE_PACKAGE:
|
||||||
cpumask_copy(&mask, cpu_present_mask);
|
cpumask_copy(&mask, cpu_present_mask);
|
||||||
|
|||||||
Reference in New Issue
Block a user