diff options
Diffstat (limited to 'crypto/api.c')
| -rw-r--r-- | crypto/api.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/crypto/api.c b/crypto/api.c index 798526d90538..033a7147e5eb 100644 --- a/crypto/api.c +++ b/crypto/api.c | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | * | 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify it | 11 | * This program is free software; you can redistribute it and/or modify it |
| 12 | * under the terms of the GNU General Public License as published by the Free | 12 | * under the terms of the GNU General Public License as published by the Free |
| 13 | * Software Foundation; either version 2 of the License, or (at your option) | 13 | * Software Foundation; either version 2 of the License, or (at your option) |
| 14 | * any later version. | 14 | * any later version. |
| 15 | * | 15 | * |
| 16 | */ | 16 | */ |
| @@ -288,11 +288,11 @@ static int crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask) | |||
| 288 | 288 | ||
| 289 | case CRYPTO_ALG_TYPE_COMPRESS: | 289 | case CRYPTO_ALG_TYPE_COMPRESS: |
| 290 | return crypto_init_compress_ops(tfm); | 290 | return crypto_init_compress_ops(tfm); |
| 291 | 291 | ||
| 292 | default: | 292 | default: |
| 293 | break; | 293 | break; |
| 294 | } | 294 | } |
| 295 | 295 | ||
| 296 | BUG(); | 296 | BUG(); |
| 297 | return -EINVAL; | 297 | return -EINVAL; |
| 298 | } | 298 | } |
| @@ -315,10 +315,9 @@ static void crypto_exit_ops(struct crypto_tfm *tfm) | |||
| 315 | case CRYPTO_ALG_TYPE_COMPRESS: | 315 | case CRYPTO_ALG_TYPE_COMPRESS: |
| 316 | crypto_exit_compress_ops(tfm); | 316 | crypto_exit_compress_ops(tfm); |
| 317 | break; | 317 | break; |
| 318 | 318 | ||
| 319 | default: | 319 | default: |
| 320 | BUG(); | 320 | BUG(); |
| 321 | |||
| 322 | } | 321 | } |
| 323 | } | 322 | } |
| 324 | 323 | ||
| @@ -593,12 +592,12 @@ int crypto_has_alg(const char *name, u32 type, u32 mask) | |||
| 593 | { | 592 | { |
| 594 | int ret = 0; | 593 | int ret = 0; |
| 595 | struct crypto_alg *alg = crypto_alg_mod_lookup(name, type, mask); | 594 | struct crypto_alg *alg = crypto_alg_mod_lookup(name, type, mask); |
| 596 | 595 | ||
| 597 | if (!IS_ERR(alg)) { | 596 | if (!IS_ERR(alg)) { |
| 598 | crypto_mod_put(alg); | 597 | crypto_mod_put(alg); |
| 599 | ret = 1; | 598 | ret = 1; |
| 600 | } | 599 | } |
| 601 | 600 | ||
| 602 | return ret; | 601 | return ret; |
| 603 | } | 602 | } |
| 604 | EXPORT_SYMBOL_GPL(crypto_has_alg); | 603 | EXPORT_SYMBOL_GPL(crypto_has_alg); |
