Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

skein: fix coding style

Added spaces around binary operators.

Signed-off-by: Tatuev Anton <tatuev.a.a@yandex.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Anton Tatuev and committed by
Greg Kroah-Hartman
9efbbfad 78b98787

+4 -4
+4 -4
drivers/staging/skein/skein_api.c
··· 50 50 * memory available. The beauty of C :-) . 51 51 */ 52 52 x = ctx->m.s256.x; 53 - x_len = ctx->skein_size/8; 53 + x_len = ctx->skein_size / 8; 54 54 /* 55 55 * If size is the same and hash bit length is zero then reuse 56 56 * the save chaining variables. ··· 91 91 skein_assert_ret(ctx, SKEIN_FAIL); 92 92 93 93 x = ctx->m.s256.x; 94 - x_len = ctx->skein_size/8; 94 + x_len = ctx->skein_size / 8; 95 95 96 96 skein_assert_ret(hash_bit_len, SKEIN_BAD_HASHLEN); 97 97 ··· 135 135 * memory available. The beautiy of C :-) . 136 136 */ 137 137 x = ctx->m.s256.x; 138 - x_len = ctx->skein_size/8; 138 + x_len = ctx->skein_size / 8; 139 139 /* Restore the chaing variable, reset byte counter */ 140 140 memcpy(x, ctx->x_save, x_len); 141 141 ··· 212 212 /* partial byte bit mask */ 213 213 mask = (u8) (1u << (7 - (msg_bit_cnt & 7))); 214 214 /* apply bit padding on final byte (in the buffer) */ 215 - up[length-1] = (u8)((up[length-1] & (0-mask))|mask); 215 + up[length - 1] = (u8)((up[length - 1] & (0 - mask)) | mask); 216 216 217 217 return SKEIN_SUCCESS; 218 218 }