All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: skein:Add space around '/'
@ 2015-10-25 14:08 Burcin Akalin
  2015-10-27  7:42 ` [Outreachy kernel] " Sudip Mukherjee
  0 siblings, 1 reply; 2+ messages in thread
From: Burcin Akalin @ 2015-10-25 14:08 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: Burcin Akalin

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

Signed-off-by: Burcin Akalin <brcnakalin@gmail.com>
---
 drivers/staging/skein/skein_api.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/skein/skein_api.c b/drivers/staging/skein/skein_api.c
index 18acf18..3fb0d1c 100644
--- a/drivers/staging/skein/skein_api.c
+++ b/drivers/staging/skein/skein_api.c
@@ -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);
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Outreachy kernel] [PATCH] staging: skein:Add space around '/'
  2015-10-25 14:08 [PATCH] staging: skein:Add space around '/' Burcin Akalin
@ 2015-10-27  7:42 ` Sudip Mukherjee
  0 siblings, 0 replies; 2+ messages in thread
From: Sudip Mukherjee @ 2015-10-27  7:42 UTC (permalink / raw)
  To: Burcin Akalin; +Cc: outreachy-kernel

On Sun, Oct 25, 2015 at 04:08:55PM +0200, Burcin Akalin wrote:
> Add space around operator '/'. Problem found using
> checkpatch.pl
> CHECK: spaces preferred around that '/' (ctx:VxV)
> 
> Signed-off-by: Burcin Akalin <brcnakalin@gmail.com>
> ---

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

regards
sudip


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-27  7:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-25 14:08 [PATCH] staging: skein:Add space around '/' Burcin Akalin
2015-10-27  7:42 ` [Outreachy kernel] " Sudip Mukherjee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.