Commit 3d01a33b77b120f8b11d8757c346442ed7961b11

Authored by Richard Hartmann
Committed by Herbert Xu
1 parent 189bd4b056

crypto: api - Fix checkpatch errors

Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Showing 1 changed file with 6 additions and 7 deletions Side-by-side Diff

... ... @@ -10,7 +10,7 @@
10 10 *
11 11 * This program is free software; you can redistribute it and/or modify it
12 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 14 * any later version.
15 15 *
16 16 */
17 17  
... ... @@ -288,11 +288,11 @@
288 288  
289 289 case CRYPTO_ALG_TYPE_COMPRESS:
290 290 return crypto_init_compress_ops(tfm);
291   -
  291 +
292 292 default:
293 293 break;
294 294 }
295   -
  295 +
296 296 BUG();
297 297 return -EINVAL;
298 298 }
299 299  
... ... @@ -315,10 +315,9 @@
315 315 case CRYPTO_ALG_TYPE_COMPRESS:
316 316 crypto_exit_compress_ops(tfm);
317 317 break;
318   -
  318 +
319 319 default:
320 320 BUG();
321   -
322 321 }
323 322 }
324 323  
325 324  
... ... @@ -593,12 +592,12 @@
593 592 {
594 593 int ret = 0;
595 594 struct crypto_alg *alg = crypto_alg_mod_lookup(name, type, mask);
596   -
  595 +
597 596 if (!IS_ERR(alg)) {
598 597 crypto_mod_put(alg);
599 598 ret = 1;
600 599 }
601   -
  600 +
602 601 return ret;
603 602 }
604 603 EXPORT_SYMBOL_GPL(crypto_has_alg);