Commit 189bd4b056af76325e491baea4338a140d0e86d8

Authored by Richard Hartmann
Committed by Herbert Xu
1 parent 5357c6c43e

crypto: anubis - 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 11 additions and 11 deletions Side-by-side Diff

... ... @@ -469,14 +469,13 @@
469 469 u32 kappa[ANUBIS_MAX_N];
470 470 u32 inter[ANUBIS_MAX_N];
471 471  
472   - switch (key_len)
473   - {
  472 + switch (key_len) {
474 473 case 16: case 20: case 24: case 28:
475 474 case 32: case 36: case 40:
476 475 break;
477 476 default:
478 477 *flags |= CRYPTO_TFM_RES_BAD_KEY_LEN;
479   - return - EINVAL;
  478 + return -EINVAL;
480 479 }
481 480  
482 481 ctx->key_len = key_len * 8;
483 482  
484 483  
485 484  
486 485  
487 486  
488 487  
... ... @@ -530,23 +529,24 @@
530 529 /*
531 530 * compute kappa^{r+1} from kappa^r:
532 531 */
533   - if (r == R) {
  532 + if (r == R)
534 533 break;
535   - }
536 534 for (i = 0; i < N; i++) {
537 535 int j = i;
538 536 inter[i] = T0[(kappa[j--] >> 24) ];
539   - if (j < 0) j = N - 1;
  537 + if (j < 0)
  538 + j = N - 1;
540 539 inter[i] ^= T1[(kappa[j--] >> 16) & 0xff];
541   - if (j < 0) j = N - 1;
  540 + if (j < 0)
  541 + j = N - 1;
542 542 inter[i] ^= T2[(kappa[j--] >> 8) & 0xff];
543   - if (j < 0) j = N - 1;
  543 + if (j < 0)
  544 + j = N - 1;
544 545 inter[i] ^= T3[(kappa[j ] ) & 0xff];
545 546 }
546 547 kappa[0] = inter[0] ^ rc[r];
547   - for (i = 1; i < N; i++) {
  548 + for (i = 1; i < N; i++)
548 549 kappa[i] = inter[i];
549   - }
550 550 }
551 551  
552 552 /*
... ... @@ -690,7 +690,7 @@
690 690 static int __init anubis_mod_init(void)
691 691 {
692 692 int ret = 0;
693   -
  693 +
694 694 ret = crypto_register_alg(&anubis_alg);
695 695 return ret;
696 696 }