Commit 30836548 authored by Hui Tang's avatar Hui Tang Committed by Herbert Xu
Browse files

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: default avatarHui Tang <tanghui20@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 155f7d32
Loading
Loading
Loading
Loading
+19 −21
Original line number Diff line number Diff line
@@ -1075,16 +1075,14 @@ static int wp512_final(struct shash_desc *desc, u8 *out)
	buffer[bufferPos] |= 0x80U >> (bufferBits & 7);
	bufferPos++;
	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);
   		}
		wp512_process_buffer(wctx);
		bufferPos = 0;
	}
   	if (bufferPos < WP512_BLOCK_SIZE - WP512_LENGTHBYTES) {
	if (bufferPos < WP512_BLOCK_SIZE - WP512_LENGTHBYTES)
		memset(&buffer[bufferPos], 0,
			  (WP512_BLOCK_SIZE - WP512_LENGTHBYTES) - bufferPos);
   	}
	bufferPos = WP512_BLOCK_SIZE - WP512_LENGTHBYTES;
	memcpy(&buffer[WP512_BLOCK_SIZE - WP512_LENGTHBYTES],
		   bitLength, WP512_LENGTHBYTES);
+1 −1

File changed.

Contains only whitespace changes.