mirror of
https://github.com/torvalds/linux
synced 2024-10-06 19:34:19 +00:00
crypto: khazad,wp512 - remove leading spaces before tabs
There are a few leading spaces before tabs and remove it by running the following commard: $ find . -name '*.c' | xargs sed -r -i 's/^[ ]+\t/\t/' At the same time, fix two warning by running checkpatch.pl: WARNING: suspect code indent for conditional statements (16, 16) WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Hui Tang <tanghui20@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
155f7d321f
commit
3083654833
|
@ -1075,16 +1075,14 @@ static int wp512_final(struct shash_desc *desc, u8 *out)
|
||||||
buffer[bufferPos] |= 0x80U >> (bufferBits & 7);
|
buffer[bufferPos] |= 0x80U >> (bufferBits & 7);
|
||||||
bufferPos++;
|
bufferPos++;
|
||||||
if (bufferPos > WP512_BLOCK_SIZE - WP512_LENGTHBYTES) {
|
if (bufferPos > WP512_BLOCK_SIZE - WP512_LENGTHBYTES) {
|
||||||
if (bufferPos < WP512_BLOCK_SIZE) {
|
if (bufferPos < WP512_BLOCK_SIZE)
|
||||||
memset(&buffer[bufferPos], 0, WP512_BLOCK_SIZE - bufferPos);
|
memset(&buffer[bufferPos], 0, WP512_BLOCK_SIZE - bufferPos);
|
||||||
}
|
|
||||||
wp512_process_buffer(wctx);
|
wp512_process_buffer(wctx);
|
||||||
bufferPos = 0;
|
bufferPos = 0;
|
||||||
}
|
}
|
||||||
if (bufferPos < WP512_BLOCK_SIZE - WP512_LENGTHBYTES) {
|
if (bufferPos < WP512_BLOCK_SIZE - WP512_LENGTHBYTES)
|
||||||
memset(&buffer[bufferPos], 0,
|
memset(&buffer[bufferPos], 0,
|
||||||
(WP512_BLOCK_SIZE - WP512_LENGTHBYTES) - bufferPos);
|
(WP512_BLOCK_SIZE - WP512_LENGTHBYTES) - bufferPos);
|
||||||
}
|
|
||||||
bufferPos = WP512_BLOCK_SIZE - WP512_LENGTHBYTES;
|
bufferPos = WP512_BLOCK_SIZE - WP512_LENGTHBYTES;
|
||||||
memcpy(&buffer[WP512_BLOCK_SIZE - WP512_LENGTHBYTES],
|
memcpy(&buffer[WP512_BLOCK_SIZE - WP512_LENGTHBYTES],
|
||||||
bitLength, WP512_LENGTHBYTES);
|
bitLength, WP512_LENGTHBYTES);
|
||||||
|
|
Loading…
Reference in a new issue