diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2015-02-14 05:23:21 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-03-25 06:49:37 -0400 |
commit | 86cd741bc6ed0edf6ea0e8ec5c840cf9e3f3a7cb (patch) | |
tree | 2fe71e719cae68adc4409e3004eacd7f7455358c /arch/s390/crypto | |
parent | 26f15caaf993bbb6f246a30aad3c96a349564528 (diff) |
s390: remove test_facility(2) (== z/Architecture mode active) checks
Given that the kernel now always runs in 64 bit mode, it is
pointless to check if the z/Architecture mode is active.
Remove the checks.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/crypto')
-rw-r--r-- | arch/s390/crypto/crypt_s390.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/s390/crypto/crypt_s390.h b/arch/s390/crypto/crypt_s390.h index 6c5cc6da7111..ba3b2aefddf5 100644 --- a/arch/s390/crypto/crypt_s390.h +++ b/arch/s390/crypto/crypt_s390.h | |||
@@ -369,14 +369,10 @@ static inline int crypt_s390_func_available(int func, | |||
369 | 369 | ||
370 | if (facility_mask & CRYPT_S390_MSA && !test_facility(17)) | 370 | if (facility_mask & CRYPT_S390_MSA && !test_facility(17)) |
371 | return 0; | 371 | return 0; |
372 | 372 | if (facility_mask & CRYPT_S390_MSA3 && !test_facility(76)) | |
373 | if (facility_mask & CRYPT_S390_MSA3 && | ||
374 | (!test_facility(2) || !test_facility(76))) | ||
375 | return 0; | 373 | return 0; |
376 | if (facility_mask & CRYPT_S390_MSA4 && | 374 | if (facility_mask & CRYPT_S390_MSA4 && !test_facility(77)) |
377 | (!test_facility(2) || !test_facility(77))) | ||
378 | return 0; | 375 | return 0; |
379 | |||
380 | switch (func & CRYPT_S390_OP_MASK) { | 376 | switch (func & CRYPT_S390_OP_MASK) { |
381 | case CRYPT_S390_KM: | 377 | case CRYPT_S390_KM: |
382 | ret = crypt_s390_km(KM_QUERY, &status, NULL, NULL, 0); | 378 | ret = crypt_s390_km(KM_QUERY, &status, NULL, NULL, 0); |