diff options
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index dfeec0c544cb..a890a6792c7b 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -889,7 +889,7 @@ static int do_test(int m) | |||
889 | 889 | ||
890 | static int do_alg_test(const char *alg, u32 type) | 890 | static int do_alg_test(const char *alg, u32 type) |
891 | { | 891 | { |
892 | return crypto_has_alg(alg, type, CRYPTO_ALG_TYPE_MASK); | 892 | return crypto_has_alg(alg, type, CRYPTO_ALG_TYPE_MASK) ? 0 : -ENOENT; |
893 | } | 893 | } |
894 | 894 | ||
895 | static int __init tcrypt_mod_init(void) | 895 | static int __init tcrypt_mod_init(void) |