Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1652150

[PATCH 08/12] staging: ccree: remove unused struct

From Gilad Ben-Yossef <gilad@benyossef.com>
Newsgroups linux.kernel
Subject [PATCH 08/12] staging: ccree: remove unused struct
Date 2017-05-28 16:50 +0200
Message-ID <tM7G2-3f9-33@gated-at.bofh.it> (permalink)
References <tM7G1-3f9-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


struct SepHashPrivateContext is not used anywhere in the code.
Remove it.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
---
 drivers/staging/ccree/hash_defs.h | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/drivers/staging/ccree/hash_defs.h b/drivers/staging/ccree/hash_defs.h
index 6138970..9e01219 100644
--- a/drivers/staging/ccree/hash_defs.h
+++ b/drivers/staging/ccree/hash_defs.h
@@ -57,22 +57,5 @@ enum HashCipherDoPadding {
 	HASH_CIPHER_DO_PADDING_RESERVE32 = S32_MAX,
 };
 
-typedef struct SepHashPrivateContext {
-	/* The current length is placed at the end of the context buffer because the hash
-	   context is used for all HMAC operations as well. HMAC context includes a 64 bytes
-	   K0 field.  The size of struct drv_ctx_hash reserved field is  88/184 bytes depend if t
-	   he SHA512 is supported ( in this case teh context size is 256 bytes).
-	   The size of struct drv_ctx_hash reseved field is 20 or 52 depend if the SHA512 is supported.
-	   This means that this structure size (without the reserved field can be up to 20 bytes ,
-	   in case sha512 is not suppported it is 20 bytes (SEP_HASH_LENGTH_WORDS define to 2 ) and in the other
-	   case it is 28 (SEP_HASH_LENGTH_WORDS define to 4) */
-	u32 reserved[(sizeof(struct drv_ctx_hash)/sizeof(u32)) - SEP_HASH_LENGTH_WORDS - 3];
-	u32 CurrentDigestedLength[SEP_HASH_LENGTH_WORDS];
-	u32 KeyType;
-	u32 dataCompleted;
-	u32 hmacFinalization;
-	/* no space left */
-} SepHashPrivateContext_s;
-
 #endif /*_HASH_DEFS_H__*/
 
-- 
2.1.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/12] staging: ccree: addtional driver cleanups Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-28 16:50 +0200
  [PATCH 11/12] staging: ccree: remove dead code Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-28 16:50 +0200
  [PATCH 05/12] staging: ccree: remove cycle count debug support Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-28 16:50 +0200
  [PATCH 03/12] staging: ccree: remove 48 bit dma addr sim Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-28 16:50 +0200
  [PATCH 12/12] staging: ccree: whitespace fixes Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-28 16:50 +0200
  [PATCH 09/12] staging: ccree: use snake_case for hash enums Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-28 16:50 +0200
  [PATCH 07/12] staging: ccree remove custom bitfield macros Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-28 16:50 +0200
  [PATCH 08/12] staging: ccree: remove unused struct Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-28 16:50 +0200
  Re: [PATCH 02/12] staging: ccree: move to kernel bitfields/bitops Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-05-29 16:50 +0200
    Re: [PATCH 02/12] staging: ccree: move to kernel bitfields/bitops Gilad Ben-Yossef <gilad@benyossef.com> - 2017-05-29 19:30 +0200

csiph-web