diff options
author | Joe Perches <joe@perches.com> | 2016-03-28 16:51:17 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-29 12:40:20 -0700 |
commit | ff3334276744ad49477e60c3c9e6acec8399b25d (patch) | |
tree | 4e519a90c6af07831270904184efb2b79305365f /drivers/staging/skein/skein_base.h | |
parent | 086620978b2d06378f4a41afce2f7705c76a4625 (diff) | |
download | op-kernel-dev-ff3334276744ad49477e60c3c9e6acec8399b25d.zip op-kernel-dev-ff3334276744ad49477e60c3c9e6acec8399b25d.tar.gz |
staging: skein: Convert local rotl_64 to kernel's rol64
Remove the local inline and use the generic kernel rol64 instead.
Miscellanea:
o Added a newline between a multiple line macro for consistency
with the other multiple line macros
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/skein/skein_base.h')
-rw-r--r-- | drivers/staging/skein/skein_base.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/skein/skein_base.h b/drivers/staging/skein/skein_base.h index 3c7f8ad..9c4be1a 100644 --- a/drivers/staging/skein/skein_base.h +++ b/drivers/staging/skein/skein_base.h @@ -84,11 +84,6 @@ struct skein_1024_ctx { /* 1024-bit Skein hash context structure */ u8 b[SKEIN_1024_BLOCK_BYTES]; /* partial block buf (8-byte aligned) */ }; -static inline u64 rotl_64(u64 x, u8 N) -{ - return (x << N) | (x >> (64 - N)); -} - /* Skein APIs for (incremental) "straight hashing" */ int skein_256_init(struct skein_256_ctx *ctx, size_t hash_bit_len); int skein_512_init(struct skein_512_ctx *ctx, size_t hash_bit_len); |