Commit 85b8432
crypto: ahash - check for shash type instead of not ahash type
Since the previous patch made crypto_shash_type visible to ahash.c,
change checks for '->cra_type != &crypto_ahash_type' to '->cra_type ==
&crypto_shash_type'. This makes more sense and avoids having to
forward-declare crypto_ahash_type. The result is still the same, since
the type is either shash or ahash here.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent ecf889b commit 85b8432
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
514 | | - | |
| 512 | + | |
515 | 513 | | |
516 | 514 | | |
517 | 515 | | |
| |||
535 | 533 | | |
536 | 534 | | |
537 | 535 | | |
538 | | - | |
| 536 | + | |
539 | 537 | | |
540 | 538 | | |
541 | 539 | | |
| |||
760 | 758 | | |
761 | 759 | | |
762 | 760 | | |
763 | | - | |
| 761 | + | |
764 | 762 | | |
765 | 763 | | |
766 | 764 | | |
| |||
0 commit comments