Skip to content

Commit 4b0ec91

Browse files
montjoieherbertx
authored andcommitted
crypto: sun8i-ce - remove dead code
Some code were left in the final driver but without any use. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 93d24ac commit 4b0ec91

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

‎drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ static int sun8i_ce_cipher(struct skcipher_request *areq)
144144
cet->t_sym_ctl = cpu_to_le32(sym);
145145
cet->t_asym_ctl = 0;
146146

147-
chan->op_mode = ce->variant->op_mode[algt->ce_blockmode];
148-
chan->op_dir = rctx->op_dir;
149-
chan->method = ce->variant->alg_cipher[algt->ce_algo_id];
150-
chan->keylen = op->keylen;
151-
152147
addr_key = dma_map_single(ce->dev, op->key, op->keylen, DMA_TO_DEVICE);
153148
cet->t_key = cpu_to_le32(addr_key);
154149
if (dma_mapping_error(ce->dev, addr_key)) {

‎drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,8 @@ struct ce_task {
131131
* @engine: ptr to the crypto_engine for this flow
132132
* @bounce_iv: buffer which contain the IV
133133
* @ivlen: size of bounce_iv
134-
* @keylen: keylen for this flow operation
135134
* @complete: completion for the current task on this flow
136135
* @status: set to 1 by interrupt if task is done
137-
* @method: current method for flow
138-
* @op_dir: direction (encrypt vs decrypt) of this flow
139-
* @op_mode: op_mode for this flow
140136
* @t_phy: Physical address of task
141137
* @tl: pointer to the current ce_task for this flow
142138
* @stat_req: number of request done by this flow
@@ -145,12 +141,8 @@ struct sun8i_ce_flow {
145141
struct crypto_engine *engine;
146142
void *bounce_iv;
147143
unsigned int ivlen;
148-
unsigned int keylen;
149144
struct completion complete;
150145
int status;
151-
u32 method;
152-
u32 op_dir;
153-
u32 op_mode;
154146
dma_addr_t t_phy;
155147
int timeout;
156148
struct ce_task *tl;

0 commit comments

Comments
 (0)