crypto: sha-mb - Cleanup code to use || instead of |
authorTim Chen <tim.c.chen@linux.intel.com>
Fri, 8 Jul 2016 16:28:03 +0000 (09:28 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 12 Jul 2016 05:02:00 +0000 (13:02 +0800)
commiteb9bc8e7afaa9f062105dad55ec1c0663d961bb3
treeee3fdfcaa6e1dcbb0522bd8861ec26505c4d20b5
parentbd76ad4abfdccd26a9ac11214aa715e83bc8e808
crypto: sha-mb - Cleanup code to use || instead of |

 for condition comparison and cleanup multiline comment style

In sha*_ctx_mgr_submit, we currently use the | operator instead of ||
((ctx->partial_block_buffer_length) | (len < SHA1_BLOCK_SIZE))

Switching it to || and remove extraneous paranthesis to
adhere to coding style.

Also cleanup inconsistent multiline comment style.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sha1-mb/sha1_mb.c
arch/x86/crypto/sha256-mb/sha256_mb.c
arch/x86/crypto/sha512-mb/sha512_mb.c