Skip to contentSkip to conversation

staging: skein:Add space around '/'

PATCH In review Burcin Akalin 2 participants 2 messages Oct 25, 2015 – Oct 27, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: skein:Add space around '/'

Add space around operator '/'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '/' (ctx:VxV)

---
 drivers/staging/skein/skein_api.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/skein/skein_api.c +3 -3
index 18acf18..3fb0d1c 100644
@@ -51,7 +51,7 @@ int skein_init(struct skein_ctx *ctx, size_t hash_bit_len)
 	 * memory available.  The beauty of C :-) .
 	 */
 	x = ctx->m.s256.x;
-	x_len = ctx->skein_size/8;
+	x_len = ctx->skein_size / 8;
 	/*
 	 * If size is the same and hash bit length is zero then reuse
 	 * the save chaining variables.
@@ -92,7 +92,7 @@ int skein_mac_init(struct skein_ctx *ctx, const u8 *key, size_t key_len,
 	skein_assert_ret(ctx, SKEIN_FAIL);
 
 	x = ctx->m.s256.x;
-	x_len = ctx->skein_size/8;
+	x_len = ctx->skein_size / 8;
 
 	skein_assert_ret(hash_bit_len, SKEIN_BAD_HASHLEN);
 
@@ -136,7 +136,7 @@ void skein_reset(struct skein_ctx *ctx)
 	 * memory available.  The beautiy of C :-) .
 	 */
 	x = ctx->m.s256.x;
-	x_len = ctx->skein_size/8;
+	x_len = ctx->skein_size / 8;
 	/* Restore the chaing variable, reset byte counter */
 	memcpy(x, ctx->x_save, x_len);
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 6 lines · Burcin Akalin

Add space around operator '/'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '/' (ctx:VxV)

---

This has already been done by 9efbbfada99c ("skein: fix coding style")

regards
sudip