From 98ac9169e5407510c70621a2106005b26d4d304a Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Wed, 21 Jul 2021 21:05:35 +0200 Subject: [PATCH] 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 --- arch/s390/kernel/processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */