Skip to content

Commit eaa8577

Browse files
Dr. David Alan Gilbertherbertx
authored andcommitted
crypto: hifn_795x - Remove unused hifn_*_command structs
Remove 'hifn_mac_command' and 'hifn_comp_command' which are unused. They're the same structure as 'hifn_crypt_command' which is used. (I was tempted to remove hifn_base_result hifn_comp_result hifn_mac_result and hifn_crypt_result which are also unused, but they vary, and perhaps they're telling someone in the future what to look at.) Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent e793f6c commit eaa8577

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

drivers/crypto/hifn_795x.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -495,16 +495,6 @@ struct hifn_crypt_command {
495495
#define HIFN_CRYPT_CMD_SRCLEN_M 0xc000
496496
#define HIFN_CRYPT_CMD_SRCLEN_S 14
497497

498-
/*
499-
* Structure to help build up the command data structure.
500-
*/
501-
struct hifn_mac_command {
502-
volatile __le16 masks;
503-
volatile __le16 header_skip;
504-
volatile __le16 source_count;
505-
volatile __le16 reserved;
506-
};
507-
508498
#define HIFN_MAC_CMD_ALG_MASK 0x0001
509499
#define HIFN_MAC_CMD_ALG_SHA1 0x0000
510500
#define HIFN_MAC_CMD_ALG_MD5 0x0001
@@ -526,13 +516,6 @@ struct hifn_mac_command {
526516
#define HIFN_MAC_CMD_POS_IPSEC 0x0200
527517
#define HIFN_MAC_CMD_NEW_KEY 0x0800
528518

529-
struct hifn_comp_command {
530-
volatile __le16 masks;
531-
volatile __le16 header_skip;
532-
volatile __le16 source_count;
533-
volatile __le16 reserved;
534-
};
535-
536519
#define HIFN_COMP_CMD_SRCLEN_M 0xc000
537520
#define HIFN_COMP_CMD_SRCLEN_S 14
538521
#define HIFN_COMP_CMD_ONE 0x0100 /* must be one */

0 commit comments

Comments
 (0)