summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-07-21 21:05:35 +0200
committerHeiko Carstens <hca@linux.ibm.com>2021-07-27 09:39:21 +0200
commit98ac9169e5407510c70621a2106005b26d4d304a (patch)
tree3a1ab396fb218b4719d87d28077c4583c3efff91 /arch/s390/kernel
parent487dff5638b90bcdb5a800cd5a63ff4dacc8e677 (diff)
downloadlinux-98ac9169e5407510c70621a2106005b26d4d304a.tar.bz2
s390/hwcaps: remove hwcap stfle check
Remove the not so obvious "(elf_hwcap & (1UL << 2)" which only checks if stfle is available. This used to be required for old code before test_facility() was introduced. test_facility() will do the right thing, regardless if stfle is available or not. Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/processor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c
index 6710a236d52f..4ee697d83bc7 100644
--- a/arch/s390/kernel/processor.c
+++ b/arch/s390/kernel/processor.c
@@ -207,7 +207,7 @@ static int __init setup_hwcaps(void)
elf_hwcap |= HWCAP_ETF3EH;
/* decimal floating point & perform floating point operation */
- if ((elf_hwcap & (1UL << 2)) && test_facility(42) && test_facility(44))
+ if (test_facility(42) && test_facility(44))
elf_hwcap |= HWCAP_DFP;
/* huge page support */