Skip to contentSkip to conversation

crypto: ccree: Remove unused struct 'tdes_keys'

PATCH In review [email protected] 3 participants 4 messages May 11, 2024 – May 31, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: ccree: Remove unused struct 'tdes_keys'

From: "Dr. David Alan Gilbert" <[email protected]>

'tdes_keys' appears unused.
Remove it.

---
 drivers/crypto/ccree/cc_cipher.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/crypto/ccree/cc_cipher.c +0 -6
index cd66a580e8b64..3fb667a17bbb1 100644
@@ -261,12 +261,6 @@ static void cc_cipher_exit(struct crypto_tfm *tfm)
 	kfree_sensitive(ctx_p->user.key);
 }
 
-struct tdes_keys {
-	u8	key1[DES_KEY_SIZE];
-	u8	key2[DES_KEY_SIZE];
-	u8	key3[DES_KEY_SIZE];
-};
-
 static enum cc_hw_crypto_key cc_slot_to_hw_key(u8 slot_num)
 {
 	switch (slot_num) {
Signature · 1 line
2.45.0
#1 lore raw
Quoted 6 lines · * [email protected] ([email protected]) wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'tdes_keys' appears unused.
Remove it.

Ping.

Quoted 24 lines
---
 drivers/crypto/ccree/cc_cipher.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/crypto/ccree/cc_cipher.c +0 -6
index cd66a580e8b64..3fb667a17bbb1 100644
@@ -261,12 +261,6 @@ static void cc_cipher_exit(struct crypto_tfm *tfm)
 	kfree_sensitive(ctx_p->user.key);
 }
 
-struct tdes_keys {
-	u8	key1[DES_KEY_SIZE];
-	u8	key2[DES_KEY_SIZE];
-	u8	key3[DES_KEY_SIZE];
-};
-
 static enum cc_hw_crypto_key cc_slot_to_hw_key(u8 slot_num)
 {
 	switch (slot_num) {
Signature · 1 line
2.45.0
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to [email protected]

Hi David,

Quoted 6 lines · On Sat, May 11, 2024 at 5:52 PM <[email protected]> wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'tdes_keys' appears unused.
Remove it.

Thank you for the patch and your patience.

Quoted 25 lines
---
 drivers/crypto/ccree/cc_cipher.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/crypto/ccree/cc_cipher.c +0 -7
index cd66a580e8b64..3fb667a17bbb1 100644
@@ -261,12 +261,6 @@ static void cc_cipher_exit(struct crypto_tfm *tfm)
        kfree_sensitive(ctx_p->user.key);
 }
 
-struct tdes_keys {
-       u8      key1[DES_KEY_SIZE];
-       u8      key2[DES_KEY_SIZE];
-       u8      key3[DES_KEY_SIZE];
-};
-
 static enum cc_hw_crypto_key cc_slot_to_hw_key(u8 slot_num)
 {
        switch (slot_num) {
--

2.45.0

Signature · 4 lines
Gilad Ben-Yossef
Chief Coffee Drinker

values of β will give rise to dom!
maintainer
#3 lore raw
In reply to [email protected]
Quoted 9 lines · On Sat, May 11, 2024 at 03:52:00PM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'tdes_keys' appears unused.
Remove it.

---
 drivers/crypto/ccree/cc_cipher.c | 6 ------
 1 file changed, 6 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt